mirror of
https://github.com/godotengine/godot.git
synced 2024-11-29 07:32:20 +00:00
Prevent unnecessary additional parser error
This commit is contained in:
parent
d26442e709
commit
5a906a33d9
@ -1646,8 +1646,9 @@ GDScriptParser::Node *GDScriptParser::parse_statement() {
|
||||
} else {
|
||||
push_error(vformat(R"(Expected statement, found "%s" instead.)", previous.get_name()));
|
||||
}
|
||||
} else {
|
||||
end_statement("expression");
|
||||
}
|
||||
end_statement("expression");
|
||||
lambda_ended = lambda_ended || has_ended_lambda;
|
||||
result = expression;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user