Merge pull request #62901 from cdemirer/prevent-unnecessary-additional-parser-error

This commit is contained in:
George Marques 2022-07-13 09:24:36 -03:00 committed by GitHub
commit ad11d264b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}
lambda_ended = lambda_ended || has_ended_lambda;
result = expression;