SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

Scope parens as `punctuation.definition`? #143

Closed Thom1729 closed 7 years ago

Thom1729 commented 7 years ago

Parentheses are currently scoped as keyword.control.group. Arguably, they should instead be scoped as punctuation.definition or punctuation.section.

The current scoping impair legibility in the default Mariana theme. Now:

image

With parens scoped as punctuation.definition:

image

FichteFoll commented 7 years ago

I wonder about this. Most color schemes by default do not color punctuation scopes and arguably parens are very important in regular expressions, being the indicator for basically anything that's not a literal or a character set.

I could probably assign both scopes though, so that punctuation will win, if it is defined.