From 04347508e688d51236e3097b796e80674a2b1ed5 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 25 Nov 2012 17:50:31 +0100 Subject: [PATCH] linecounting issue in the lexer --- lexer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lexer.c b/lexer.c index 10a0091..49b8ada 100644 --- a/lexer.c +++ b/lexer.c @@ -883,14 +883,14 @@ int lex_do(lex_file *lex) continue; } - lex->sline = lex->line; - lex->tok.ctx.line = lex->sline; - lex->tok.ctx.file = lex->name; - if (lex->flags.preprocessing && (ch == TOKEN_WHITE || ch == TOKEN_EOL || ch == TOKEN_FATAL)) { return (lex->tok.ttype = ch); } + lex->sline = lex->line; + lex->tok.ctx.line = lex->sline; + lex->tok.ctx.file = lex->name; + if (lex->eof) return (lex->tok.ttype = TOKEN_FATAL); -- 2.39.2