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

View File

@ -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 ";" { $$ = $1; }
| resource_body1 "," { $$ = $1; }
;
resource_item : value { $$ = $1; }