Skip to content

Conversation

@michaelblyons
Copy link
Collaborator

Technically regions are only valid at BOL, but since they're not interpreted by Pwsh itself, we're being lenient.

See #216

Technically regions are only valid at BOL
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comments

but since they're not interpreted by Pwsh itself, we're lenient

See SublimeText#216
Apparently the current stable trims internal spaces
@michaelblyons
Copy link
Collaborator Author

@deathaxe One thing that seems weird is that the folding in my syntax test extends too far (beyond the meta.fold.end of the #endregion), even though it works fine for the original sample in #216 without the syntax test comments. Do you have any ideas?

@deathaxe
Copy link
Member

grafik

Syntax test region is folding as I would expect it to - up to the eol after #endregion, only.

@michaelblyons
Copy link
Collaborator Author

Oh, weird. It's working for me, too, now. Maybe just a caching thing. Thanks for checking!

@michaelblyons michaelblyons merged commit 4969d09 into SublimeText:master Jan 29, 2026
3 checks passed
@deathaxe
Copy link
Member

ST requires some events (e.g. code changes) after reloading syntax definitions, for fold regions to be updated.

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.

2 participants