[TxMt] Latex Bundle: \{ in math mode.
Charilaos Skiadas
cskiadas at uchicago.edu
Thu Nov 3 20:21:59 UTC 2005
On Nov 3, 2005, at 2:11 PM, Charilaos Skiadas wrote:
> The last changes in the LaTeX Bundle broke down syntax coloring for
> things like this:
> $D_1=\{x_1^2\}$
> Basically, the \{ inside math mode is considered
> constant.language.generic
> while the \} is not.
> The relevant code is
> { name = 'constant.language.general';
> match = '\\([^a-zA-Z]|[A-Za-z]+)(?=\b|\}|\]|\^|
> \_)';
> },
Responding to myself to add that this has to do with the fact that \
{ is followed by an x. If it is followed by a space or something like
that, then it's colored just fine.
Haris
More information about the textmate
mailing list