aboutsummaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lex.c b/lex.c
index 503e41a..1c23212 100644
--- a/lex.c
+++ b/lex.c
@@ -210,6 +210,11 @@ int yylex(void)
while ((c = input()) != '\n' && c != 0)
;
unput(c);
+ /*
+ * Next line is a hack, itcompensates for
+ * unput's treatment of \n.
+ */
+ lineno++;
break;
case ';':
RET(';');