aboutsummaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-01-31 08:54:10 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-01-31 08:54:10 +0200
commit768d6b58865eb9b0ff5ebd4ef430b767d2108224 (patch)
treea02ec8beadcc3f3fd528b10fb32ef835c0cf101f /lex.c
parent78c79c06d07735d5881ea08cf40e014a41d341af (diff)
downloadone-true-awk-768d6b58865eb9b0ff5ebd4ef430b767d2108224.tar.gz
Get tests working again.
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(';');