-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update python highlighting to take advantage of themes. #2451
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
62a6345
Change python highlights.scm to more fully utilize the themes.
Zeddicus414 1e4a9da
dark_plus theme constructor should be green.
Zeddicus414 25815df
Merge branch 'helix-editor:master' into master
Zeddicus414 d5b6bc4
Python highlight improvements: type, parameter etc
fc84edd
Merge pull request #1 from paul-scott/types
Zeddicus414 9da79d9
Python handling highlighting parameters with defaults
ef740fb
Python highlight keyword argument as parameter
065ab2a
Merge pull request #2 from paul-scott/types
paul-scott 41cfaed
Python highlight decorator attribute
d3ee550
Merge pull request #3 from paul-scott/types
paul-scott 2009d2b
Merge branch 'helix-editor:master' into master
Zeddicus414 b07f84f
Merge branch 'helix-editor:master' into master
Zeddicus414 6756086
Merge branch 'helix-editor:master' into master
Zeddicus414 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\cc @kirawi to confirm this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think that the usage of
@constructor
has become somewhat conflated with@type
as in many highlight queries it applies to all identifiers with^[A-Z]
. I'm fine with this change.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The recent commits we made to this PR fixed up the usage of
@constructor
so it is no longer conflated with@type
in python at least. I suspect originally that was the main motivation for @Zeddicus414 wanting to change this. For style reasons, maybe the change here is still a good idea. I just thought I'd point this out.