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] Match unpacking operators #879

Merged
merged 2 commits into from
Apr 5, 2017

Conversation

FichteFoll
Copy link
Collaborator

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.

- match: \*
scope: keyword.operator.unpacking.python
- match: \*\*
scope: keyword.operator.unpacking.python
Copy link
Collaborator

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.

Copy link
Collaborator

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?

Copy link
Collaborator

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.

Copy link
Collaborator Author

@FichteFoll FichteFoll Apr 5, 2017

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).

@wbond wbond merged commit c786b73 into sublimehq:master Apr 5, 2017
@wbond
Copy link
Member

wbond commented Apr 5, 2017

Tests passed, thanks!

@FichteFoll FichteFoll deleted the python_unpacking-operators branch April 5, 2017 22:29
deathaxe pushed a commit to deathaxe/sublime-packages that referenced this pull request Jun 9, 2019
…erators

[Python] Match unpacking operators
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.

3 participants