Merge pull request #249 from briankendall/fix-empty-resources

Fix compilation of empty resources as generated by MPW's DeRez
This commit is contained in:
Wolfgang Thaller 2024-06-02 17:44:07 +02:00 committed by GitHub
commit 2abae70456
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -500,10 +500,14 @@ resource_item : value { $$ = $1; }
;
data : "data" res_spec "{" string_expression "}"
{
world.addData($res_spec, $string_expression->evaluateString(nullptr), @1);
}
;
data : "data" res_spec "{" string_expression "}"
{
world.addData($res_spec, $string_expression->evaluateString(nullptr), @1);
}
| "data" res_spec "{" "}"
{
world.addData($res_spec, "", @1);
}
;
%%