Sublime Forum

Negate scope in ST2 snippet

#1

Is it possible to exclude a scope in a Sublime Text 2 snippet?

For example, I try to define a snippet which only works in text.tex.latex, but not in string.other.math.

I already tried the following:

<scope>text.tex.latex !string.other.math</scope>

unfortunately without success.

0 Likes

#2

Try <scope>text.tex.latex - string.other.math</scope>

0 Likes