I am currently writing in latex in Sublime 3; I am using the LaTeXTools package. In one of the first lines of my file I have redefined the square brackets as follows.
\makeatletter
\AtBeginDocument{%
\let\[\@undefined
\DeclareRobustCommand{\[}{\begin{equation}}
\let\]\@undefined
\DeclareRobustCommand{\]}{\end{equation}}
}
\makeatother
Sublime in some way understands that this is an equation left open, and thus that the rest of my file is written in mathmode. This is annoying, not only because all my text is now yellow, but because autocompletions work poorly.
How could I solve this?