[TxMt] q regarding language grammars/begin/end patterns

Patrick Gundlach textmate at contextgarden.net
Mon Sep 4 12:18:19 UTC 2006

Hi there,

I've got a new language for which I'd like to create a new grammar.
It's a LaTeX alike language, but environments look like this:



The language grammar doesn't seem to accept the backslash (it does so
in the LaTeX bundle, so I must be doing something wrong). The
following works fine:

		{	name = 'meta.foo.bar';
			begin = 'xx';
			end = 'yy';

and in my text between 'xx' and 'yy' the scope is also 'meta.foo.bar'.
But when I chage the grammar to 

		{	name = 'meta.foo.bar';
			begin = '\\xx';
			end = '\\yy';
I can't see that the scope changes to 'meta.foo.bar' within \xx and
\yy. Can somebody tell me what to do?


More information about the textmate mailing list