You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Allow trailing comma in preload
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user