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