Skip to content
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

[Python] Highlight decorators as inline-statements #459

Merged
merged 3 commits into from Jun 10, 2016

Conversation

FichteFoll
Copy link
Collaborator

This PR more appropriately matches decorators as "inline statements" and the @ character as the designating keyword. It also gets rid of the odd entity.name.function.decorator scope (which is semantically something different) and instead applies a meta scope to the entire decorator construct, not just the initial identifier like before.

Before:

2016-06-06_17 04 39

After:

2016-06-06_17 03 49

(for Monokai, imagine both class names and decorators being green)

Gets rid of odd `entity.name.function.decorator` scope and instead
applies a meta scope to the entire decorator construct that can be
highlighed with a background color or fontStyle instead.
@wbond wbond merged commit 6e24081 into sublimehq:master Jun 10, 2016
@wbond
Copy link
Member

wbond commented Jun 10, 2016

This looks great, thanks!

@FichteFoll FichteFoll deleted the python_decotators branch June 11, 2016 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants