aboutsummaryrefslogtreecommitdiff
path: root/lib/Parser/Parser.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-22 15:14:35 +0000
committer_ov4 <ov4@ov4.org>2026-10-22 15:33:15 +0000
commit17993103e1ba1d142205eb2e41291edebc0e3a89 (patch)
tree4a3208d9c0edb1bdd7ae317da0d6dd0d098279b6 /lib/Parser/Parser.cc
parentcb62de1eba07d4c522213bdd8331686684b3468c (diff)
fix(parser): report missing THEN and ')' on the line that needs them
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/Parser/Parser.cc')
-rw-r--r--lib/Parser/Parser.cc1
1 files changed, 1 insertions, 0 deletions
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;
}