Sublime Forum

Snippet scope: exclude inner scopes

#1

I have created my LaTeX snippet, “r+Tab”, which gives \ref. But I want it to work only in the uppermost scope of latex, i.e., text.tex.latex. But it works also, e.g., inside equations, where scope is text.tex.latex meta.environment.math.block.be.latex. In this scope I still want the LaTeXTool’s snippet to work, which gives \rho for “r+Tab”. How to restrict my snippet so that it is ignored inside equations?

0 Likes

#2

something like like text.tex.latex - meta?

3 Likes

#3

Yep! Thanks.

1 Like