Please sign in to comment.
Fix parsing of single-line comments without text.
If the '//' was followed by newline immediately, without any text, that it wasn't parsed as a comment correctly, instead emitting hard to understand errors further down in the text. Fixed by using the same approach to describing // comments as is used in ANTLR3's example C preprocessor grammar. Fixes #6.
- Loading branch information...
Showing with 3 additions and 1 deletion.