I have lately had to use code that includes
\begin{SaveVerbatim}[commandchars=\{},codes={\catcode`$=3 \catcode`^=7}]{guard} $\lnot$busy(phone) \end{SaveVerbatim}
The \catcode`$=3 confuses the TextMate's grammar and thus everything that follows is treated at maths in scopes and hence in colouring.
Is there an easy solution without messing with the main language definition?