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'?