Skip to content
Discussion options

You must be logged in to vote

We generally follow textmate for scope names which also uses @constant: https://macromates.com/manual/en/language_grammars#naming_conventions.

Rebranding values as @literal makes sense to me but I think it's a fair (although debatable) interpretation to say that constant identifiers are closer @constants than identifiers: they're effectively the same as having a literal value in their place.

Changing to @literal also wouldn't really enable any new functionality: you can already highlight values by defining the necessary theme keys; it would just make that easier.

I don't think it's worth the breaking change it would cause to themes and queries.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by savq
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7436 on June 23, 2023 22:35.