Skip to content

[C#] Fix for loops#4530

Merged
deathaxe merged 1 commit into
sublimehq:masterfrom
deathaxe:pr/cs/fix-for-loops
Apr 20, 2026
Merged

[C#] Fix for loops#4530
deathaxe merged 1 commit into
sublimehq:masterfrom
deathaxe:pr/cs/fix-for-loops

Conversation

@deathaxe
Copy link
Copy Markdown
Collaborator

Fixes #4527

This PR fixes issues with multiple variable declarations in for loops.

This commit fixes issues with multiple variable declarations in for loops.
Comment thread C#/C#.sublime-syntax
- maybe_pointer
- match: (?=;|\)|\})
pop: 1
for_increment:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically there is no need for it to be an increment expression, but naming is hard and it is clear enough from looking at this context that it supports decrements etc as well

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, but this is only a quick fix. I have already identified (and partly fixed) dozens of issues, all of which is part of a larger changeset. It needs some time to mature first in order to limit noise.

@deathaxe deathaxe merged commit b5df6c0 into sublimehq:master Apr 20, 2026
2 checks passed
@deathaxe deathaxe deleted the pr/cs/fix-for-loops branch April 20, 2026 17:18
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.

[C#] Multiple indices in for-loop

3 participants