You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however the syntax of sublime-syntax files doesn't really handle that correctly (only the first comma seems handled and the auto-completion breaks on the next capture for example).
This is not a big issue, but resolving it may add a + to the SS++++ ranking of this extremely good package ^^.
The text was updated successfully, but these errors were encountered:
Are you sure the commas don't become part of the scope? (I'm not at a computer to check - the show_scope_name command on a token you've scoped with commas should reveal it... I guess if it did, it would be impossible to select them as comma is an operator in scope selectors. ) Typically scopes are stacked just with a space, no need for commas.
Oh, my bad, scopes are space-separated... I couldn't find this anywhere, I only found an answer on the Sublime Text forum that says that scopes are comma-separated. Commas on comma-separated lists of scopes do show up when using the show_scope_name command, but everything else seems to work fine just as if they where space-separated.
Sorry for this non-issue then.
But still: when using the comma-separated syntax in a sublime-syntax file, the first comma is given the scopes
as if commas were only partly supported (or maybe they have an other use that I am not aware of, since documentation on the sublime-syntax syntax is rare on the Internet ><).
The first comma should definitely be part of a string scope, so I fixed that for the next release. However, commas and other special characters in scope names aren't really expected or supported. I haven't experimented with what characters are allowed, but you would certainly be unable to match a literal comma with a scope selector, since the comma is an operator there.
It is possible to define multiples scopes in a
scope:
field by separating them with commas like inhowever the syntax of sublime-syntax files doesn't really handle that correctly (only the first comma seems handled and the auto-completion breaks on the next capture for example).
This is not a big issue, but resolving it may add a
+
to theSS++++
ranking of this extremely good package ^^.The text was updated successfully, but these errors were encountered: