Perfect. Thanks.

One more after that...

Is there a way to do an end rules that says 'until you see one of these things defined from the repository?

I think there probably there is but i'm having a hard time seeing how you use a pattern from the repository in a begin or end rather than an include.

On Tuesday, November 29, 2011 at 2:38 AM, Martin Kühl wrote:

On Tue, Nov 29, 2011 at 08:28, Sean T Allen <sean@monkeysnatchbanana.com> wrote:
I'm trying to do a language grammar where i would do something like

xxx start special section

lots of stuff
.. more stuff...
.. more stuff...

and have

repository = {
  special = {
    name = 'punctuation.section.special';
    begin = '^xxx start special section';
    end = '<END OF FILE>';
  };
};

Is there a way to have an end rule of 'the end of the file'?

I seem to recall some way to do this but can't seem to find it…
I suggest trying something like `$(?!\n)`, which would match the end of
a line that is not followed by a line break.

HTH,
Martin

_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate