[SVN] Can't get begin-end pattern to work
Charilaos Skiadas
skiadas at math.uchicago.edu
Mon Jun 6 00:35:22 UTC 2005
I'm trying to make a begin-end pattern to catch:
\begin{foo}
stuff here
\end{foo}
and I can't figure out what I've done wrong. I am using the following:
{ name = "declaration.environment.latex";
begin = "(\\\\begin\\{)(.*?)(\\})";
end = "(\\\\end\\{)(.*?)(\\})";
captures =
{ 1 = { name = "keyword.function.environment.latex"; };
2 = { name =
"entity.parameter.function.variable.environment.latex"; };
3 = { name = "keyword.function.environment.latex"; };
4 = { name = "keyword.function.environment.latex"; };
5 = { name =
"entity.parameter.function.variable.environment.latex"; };
6 = { name = "keyword.function.environment.latex"; };
};
},
and, while the 'begin' part is being detected with no problem, the
'end' part is completely overlooked. I.e. in a sample text like:
\begin{foo}
bar
\end{foo}
bzr
bzr
the bzr part is considered as part of the environment. What am I doing
wrong?
Haris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1030 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate-dev/attachments/20050605/5fa2c3b1/attachment.bin>
More information about the textmate-dev
mailing list