1
0
mirror of https://github.com/autc04/Retro68.git synced 2025-03-29 13:36:23 +00:00

Rez: allow trailing commas, like the original Rez does

This commit is contained in:
Wolfgang Thaller 2019-01-23 19:33:27 +01:00
parent 6f47ae00aa
commit 303428e10a

@ -492,6 +492,7 @@ resource_body1 : resource_item { $$ = std::make_shared<CompoundExpr>(@1); $$->ad
| resource_body1 "," resource_item { $$ = $1; $$->addItem($3); } | resource_body1 "," resource_item { $$ = $1; $$->addItem($3); }
| resource_body1 ";" resource_item { $$ = $1; $$->addItem($3); } | resource_body1 ";" resource_item { $$ = $1; $$->addItem($3); }
| resource_body1 ";" { $$ = $1; } | resource_body1 ";" { $$ = $1; }
| resource_body1 "," { $$ = $1; }
; ;
resource_item : value { $$ = $1; } resource_item : value { $$ = $1; }