1
0
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:
Artemy Fedotov
2025-09-22 14:15:12 +04:00
parent 2753d333f6
commit a3e0f8dee2

View File

@@ -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);