implement brace depth tracking in Compiler for unmatched '{' error handling

This commit is contained in:
2026-06-11 08:15:35 -05:00
parent 577b391aa3
commit 0ae8830b04
3 changed files with 9 additions and 4 deletions
-4
View File
@@ -162,10 +162,6 @@ bool emitKnownCompileDiagnostic(const std::string &script,
expressionError(2, "unexpected '}'");
return true;
}
if (script == "1{") {
expressionError(0, "unmatched '{'");
return true;
}
if (script == "{1}") {
expressionError(3, "'}' doesn't want any addresses");
return true;