Merge pull request #62900 from cdemirer/fix-parser-stuck-in-an-error-loop
This commit is contained in:
commit
d51aac1137
1 changed files with 1 additions and 0 deletions
|
@ -1680,6 +1680,7 @@ GDScriptParser::Node *GDScriptParser::parse_statement() {
|
|||
lambda_ended = true;
|
||||
has_ended_lambda = true;
|
||||
} else {
|
||||
advance();
|
||||
push_error(vformat(R"(Expected statement, found "%s" instead.)", previous.get_name()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue