You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Fix parser stuck in an error loop
This commit is contained in:
@@ -1644,6 +1644,7 @@ GDScriptParser::Node *GDScriptParser::parse_statement() {
|
|||||||
lambda_ended = true;
|
lambda_ended = true;
|
||||||
has_ended_lambda = true;
|
has_ended_lambda = true;
|
||||||
} else {
|
} else {
|
||||||
|
advance();
|
||||||
push_error(vformat(R"(Expected statement, found "%s" instead.)", previous.get_name()));
|
push_error(vformat(R"(Expected statement, found "%s" instead.)", previous.get_name()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user