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/ParserExpression.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Parser/ParserExpression.cc') diff --git a/lib/Parser/ParserExpression.cc b/lib/Parser/ParserExpression.cc index 8c5e8ce..b75f704 100644 --- a/lib/Parser/ParserExpression.cc +++ b/lib/Parser/ParserExpression.cc @@ -211,7 +211,7 @@ std::unique_ptr Parser::ParseParenExpr() { auto V = ParseExpression(); if (!V) return nullptr; if (CurTok != ')') { - cps::sourceError(Lex.getLine(), "expected ')'"); + cps::sourceError(missingLine(), "expected ')'"); return nullptr; } getNextToken(); -- cgit v1.3.1-4-g156e