From 768d6b58865eb9b0ff5ebd4ef430b767d2108224 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 31 Jan 2020 08:54:10 +0200 Subject: Get tests working again. --- lex.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lex.c') 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(';'); -- cgit v1.2.3