Merge pull request #62901 from cdemirer/prevent-unnecessary-additional-parser-error
This commit is contained in:
commit
ad11d264b7
@ -1683,8 +1683,9 @@ GDScriptParser::Node *GDScriptParser::parse_statement() {
|
|||||||
advance();
|
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()));
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
end_statement("expression");
|
end_statement("expression");
|
||||||
|
}
|
||||||
lambda_ended = lambda_ended || has_ended_lambda;
|
lambda_ended = lambda_ended || has_ended_lambda;
|
||||||
result = expression;
|
result = expression;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user