Skip to content

Conversation

@deathaxe
Copy link
Collaborator

This commit scopes all colons punctuation.section.block.begin, which start an indented block of code, regardless their actual context.

The point is colon indicating a start of a code block, like an opening brace in a C-style language. We just don't scope the block meta.block as we don't want or can't reliably count indentation to pop it off, correctly.

This commit scopes all colons `punctuation.section.block.begin`, which start
an indented block of code, regardless their actual context.

The point is colon indicating a start of a code block, like an opening brace
in a C-style language. We just don't scope the block `meta.block` as we don't
want or can't reliably count indentation to pop it off, correctly.
Copy link
Collaborator

@keith-hall keith-hall left a comment

Choose a reason for hiding this comment

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

I used to have separate color scheme rules for punctuation of various block types, but probably it makes sense to unify

@deathaxe
Copy link
Collaborator Author

Exactly, what I wouldn't have expected anyone to do :-D

FWIW, most of them are covered by corresponding meta scopes, if distinct colors is desired.

@deathaxe deathaxe merged commit e98fe9c into sublimehq:master Dec 11, 2025
2 checks passed
@deathaxe deathaxe deleted the pr/python/unify-block-punctuation branch December 11, 2025 08:12
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