Delay incrementing the line number until after sending TOKendline
commit579bafa535a7ad99c925db8a3a517e0b3ac38531
authorThomas Leonard <talex5@gmail.com>
Fri, 19 Sep 2008 18:34:19 +0000 (19 19:34 +0100)
committerThomas Leonard <talex5@gmail.com>
Fri, 19 Sep 2008 18:34:19 +0000 (19 19:34 +0100)
treebb1bb80ce0d32b51388d0c94a588f82975d14a37
parentbfe29920b23ba76f2cec9d30a4c38cda27d51139
Delay incrementing the line number until after sending TOKendline

Produces better error messages if the parser gets an unexpected newline.
dmd/lexer.c
dmd/lexer.h