[TxMt] LaTeX Syntax coloring problem

Kai von Fintel fintel at gmail.com
Fri Apr 18 10:47:36 UTC 2008


The minimal test case below shows that something in the parsing of the
newenvironment command is throwing off the syntax coloring by the
LaTeX bundle, at least on my system (TM 1.5.7 1464 on Leopard). The
text in the document is incorrectly parsed as being in a math
environment.

\documentclass{article}

\usepackage{amsmath}

\newenvironment{choice}
     {\left\lbrace\begin{gathered}}
     {\end{gathered}\right\rbrace}

\begin{document}

Text incorrectly parsed as being in a math environment.

\end{document}

-----

Any ideas of how to fix the parsing?

--
Kai von Fintel
fintel at gmail.com



More information about the textmate mailing list