-
Notifications
You must be signed in to change notification settings - Fork 588
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] Match unpacking operators #879
[Python] Match unpacking operators #879
Conversation
Python/Python.sublime-syntax
Outdated
- match: \* | ||
scope: keyword.operator.unpacking.python | ||
- match: \*\* | ||
scope: keyword.operator.unpacking.python |
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.
This pattern will never be matched due to the single *
pattern coming before it.
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.
Currently, 3 or more stars in a row will be scoped as if valid, is that what we want?
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.
As will stars with spaces between them, which I don't think is valid.
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.
Nice spot. All fixed (and more).
c6cad62
to
8dc9a04
Compare
8dc9a04
to
53e62dc
Compare
Tests passed, thanks! |
…erators [Python] Match unpacking operators
Follow-up on #743. Since this is also runs into sublimehq/sublime_text#1190, please confirm locally that the tests pass as I can't.
Fixes #773.