Sublime Forum

Keyword scope bug in SpaceCadet.tmTheme?

#1

On ST3 / 3105

In SpaceCadet.tmTheme, line 78:

keyword - keyword.operator, keyword.operator.logical

Should that be:

keyword, keyword.operator, keyword.operator.logical

0 Likes

#2

Scope selectors can have negative selectors, which are indicated by the hyphen you are referring to here. By itself this is definitely not a bug, but depending on other scope selectors in the file it may result in “odd” highlighting. I don’t have the file handy atm to take a look though.

0 Likes

#3

Ok, thanks.

I’m creating a syntax definition. I had an operator get matched by keyword.operator and another scope. On SpaceCadet, that would fall-through to the other scope. I’ll fix it by making sure the operator only gets matched to keyword.operator.

0 Likes