I have
lexical Comment = [#] ![\n]* [\n];
lexical Layout
= [\ \t\n\r]
| @category="Comment" Comment;
layout LAYOUTLIST = Layout* !>> [\ \t\n\r#];
And when i use the start[Foo] in my parse function (assuming I have start syntax Foo = ..), I can write whitespace and comments at the beginning of the file, and whitespace at the end of the file, but I cannot write comments at the end of the file. Is this a bug?
I'm assuming this is happening because your definition of comment requires that it contains a newline at the end. If you change the final [\n] to $ it should work, since that will match either the end of the line or the end of the file.
Asked: Jan 22
Seen: 11 times
Last updated: Jan 22
Copyright CWI, 2010-2012. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.