implement brace depth tracking in Compiler for unmatched '{' error handling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user