Fix parser stuck in an error loop

This commit is contained in:
cdemirer 2022-07-11 02:42:40 +03:00
parent d26442e709
commit 4f36b2df2a

View File

@ -1644,6 +1644,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()));
}
}