mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 07:01:06 +00:00
Merge pull request #62901 from cdemirer/prevent-unnecessary-additional-parser-error
This commit is contained in:
commit
ad11d264b7
1 changed files with 2 additions and 1 deletions
|
|
@ -1683,8 +1683,9 @@ GDScriptParser::Node *GDScriptParser::parse_statement() {
|
|||
advance();
|
||||
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…
Add table
Add a link
Reference in a new issue