diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 15:14:35 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 15:33:15 +0000 |
| commit | 17993103e1ba1d142205eb2e41291edebc0e3a89 (patch) | |
| tree | 4a3208d9c0edb1bdd7ae317da0d6dd0d098279b6 /lib/Parser/ParserExpression.cc | |
| parent | cb62de1eba07d4c522213bdd8331686684b3468c (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/ParserExpression.cc')
| -rw-r--r-- | lib/Parser/ParserExpression.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<ExprAST> Parser::ParseParenExpr() { auto V = ParseExpression(); if (!V) return nullptr; if (CurTok != ')') { - cps::sourceError(Lex.getLine(), "expected ')'"); + cps::sourceError(missingLine(), "expected ')'"); return nullptr; } getNextToken(); |
