[TxMt] [Latex] source colouring gets confused

Berndt Farwer farwer at mac.com
Fri Mar 23 20:15:11 UTC 2007


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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2615 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070323/a377383b/attachment.p7s>


More information about the textmate mailing list