right way to skip all whitespace at start of every line?

Apr 11, 2013 at 11:38 PM
I'm using MakeStarRule(..., NewLinePlus, ...). This works fine except that it is common to have some excess white space on empty lines. I want to ignore those lines. Can I override SkipWhitepsace to ignore all white space at the start of a line? My grammar makes no use of whitespace at the start of a line in any situation.
Apr 12, 2013 at 4:23 PM
After further review, it seems that whitespace at the start of lines is handled okay. It's just the very last line that is a problem; if I have spaces on the very last line (and nothing else) then I have a failure to match any of my valid line definitions.
Apr 12, 2013 at 4:34 PM
Edited Apr 12, 2013 at 10:31 PM
On this topic, I guess the real question is this: LanguageFlags.NewLineBeforeEOF means "treat the EOF as a newline if necessary" rather than "require that the input end with a newline character" ?