Skip to content

Commit 8f386fd

Browse files
committed
Merge pull request #110775 from fstxz/preload-comma
Allow trailing comma in `preload`
2 parents 33bfd1f + a3e0f8d commit 8f386fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/gdscript/gdscript_parser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,6 +3595,9 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_preload(ExpressionNode *p_
35953595

35963596
pop_completion_call();
35973597

3598+
// Allow trailing comma.
3599+
match(GDScriptTokenizer::Token::COMMA);
3600+
35983601
pop_multiline();
35993602
consume(GDScriptTokenizer::Token::PARENTHESIS_CLOSE, R"*(Expected ")" after preload path.)*");
36003603
complete_extents(preload);

0 commit comments

Comments
 (0)