From 17993103e1ba1d142205eb2e41291edebc0e3a89 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 15:14:35 +0000 Subject: fix(parser): report missing THEN and ')' on the line that needs them Co-Authored-By: Claude Sonnet 5.5 --- lib/Parser/Parser.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Parser/Parser.cc') diff --git a/lib/Parser/Parser.cc b/lib/Parser/Parser.cc index d17856b..ad2e408 100644 --- a/lib/Parser/Parser.cc +++ b/lib/Parser/Parser.cc @@ -30,6 +30,7 @@ Parser::Parser(Lexer &L) : Lex(L) { void Parser::getNextToken() { int PreviousLine = CurTok == tok_eof ? 0 : Lex.getLine(); + PrevTokLine = PreviousLine; CurTok = Lex.gettok(); StartsLine = Lex.getLine() != PreviousLine; } -- cgit v1.3.1-4-g156e