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

[C#] rework tuple scopes to match Python #2969

Merged
merged 4 commits into from
Aug 23, 2021

Conversation

keith-hall
Copy link
Collaborator

Change the meta and punctuation scopes used for tuples in the C# syntax to match the Python syntax definition - from meta.group.tuple punctuation.section.group.begin to meta.sequence.tuple punctuation.section.sequence.begin etc.
Suggested in #2838 (comment)

@jrappen
Copy link
Contributor

jrappen commented Aug 18, 2021

I assume you could also move to version: 2 and replace all instances of pop: true with pop: 1 while at it.

@deathaxe
Copy link
Collaborator

Moving to syntax version 2 would be a separate step/PR, IMHO. This is just a follow up to tidy meta scopes of sequences.

C#/C#.sublime-syntax Outdated Show resolved Hide resolved
also don't include prototype as lookahead char is immediately consumed
C#/C#.sublime-syntax Outdated Show resolved Hide resolved
C#/C#.sublime-syntax Outdated Show resolved Hide resolved
deathaxe
deathaxe previously approved these changes Aug 18, 2021
@deathaxe deathaxe merged commit 84199dd into sublimehq:master Aug 23, 2021
@keith-hall keith-hall deleted the csharp_tuple_scope branch August 23, 2021 18:21
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
* [C#] rework tuple scopes to match Python

* [C#] use named context for tuple or group branches

also don't include prototype as lookahead char is immediately consumed

* [C#] remove unnecessary capture group
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.

5 participants