mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #110775 from fstxz/preload-comma
Allow trailing comma in `preload`
This commit is contained in:
commit
8f386fd9c4
1 changed files with 3 additions and 0 deletions
|
@ -3595,6 +3595,9 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_preload(ExpressionNode *p_
|
||||||
|
|
||||||
pop_completion_call();
|
pop_completion_call();
|
||||||
|
|
||||||
|
// Allow trailing comma.
|
||||||
|
match(GDScriptTokenizer::Token::COMMA);
|
||||||
|
|
||||||
pop_multiline();
|
pop_multiline();
|
||||||
consume(GDScriptTokenizer::Token::PARENTHESIS_CLOSE, R"*(Expected ")" after preload path.)*");
|
consume(GDScriptTokenizer::Token::PARENTHESIS_CLOSE, R"*(Expected ")" after preload path.)*");
|
||||||
complete_extents(preload);
|
complete_extents(preload);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue