Skip to content

[C#] Reorganize global and class-level contexts - #4625

Merged
deathaxe merged 1 commit into
sublimehq:masterfrom
deathaxe:pr/cs/reorganize-context
Oct 6, 2026
Merged

deathaxe merged 1 commit into
sublimehq:masterfrom
deathaxe:pr/cs/reorganize-context

Conversation

@deathaxe

@deathaxe deathaxe commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

This commit rearranges includes in global and class-level contexts for both to share same structure, but primarily to ensure special declaration contexts always take precedence over common patterns such as attributes and modifiers.

As a result external-alias-declarations no longer need to be injected somewhere in the middle of common modifiers, just to ensure its patterns match.

Only behavior change:

Label declarations are added to list of class-level fallback patterns to help with maintaining syntax highlighting in case of incomplete blocks or method definitions etc.

This commit rearranges includes in global and class-level contexts for both to
share same structure, but primarily to ensure special declaration contexts
always take precedence over common patterns such as attributes and modifiers.

As a result `external-alias-declarations` no longer need to be injected
somewhere in the middle of common modifiers, just to ensure its patterns match.

Only behavior change:

Label declarations are added to list of class-level fallback patterns to help
with maintaining syntax highlighting in case of incomplete blocks or method
definitions etc.
@deathaxe
deathaxe merged commit bffaa53 into sublimehq:master Oct 6, 2026
2 checks passed
@deathaxe
deathaxe deleted the pr/cs/reorganize-context branch October 6, 2026 06:34
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