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 likexxx start special sectionlots of stuff.. more stuff..... more stuff...and haverepository = {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 ofa line that is not followed by a line break.HTH,Martin_______________________________________________textmate mailing list