support tagged enums inside tables

This commit is contained in:
Robin Appelman 2023-12-21 20:36:09 +01:00
commit 21c048625e
5 changed files with 65 additions and 7 deletions

View file

@ -0,0 +1,9 @@
---
source: tests/serde.rs
expression: result
---
EnumInMap(
foo: bar(
a: true,
),
)

View file

@ -4,11 +4,11 @@ expression: out
---
vmt_parser::unknown_variant
× Unknown variant "Resource" expected on of expected on of Types, LightmappedGeneric, Resource/specificPanel.res, UserConfigData, Sprite
× Unknown variant "Resource" expected on of expected on of Types, LightmappedGeneric, Resource/specificPanel.res, UserConfigData, Sprite, EnumInMap
╭─[1:1]
1 │ "Resource"
· ─────┬────
· ╰── expected on of Types, LightmappedGeneric, Resource/specificPanel.res, UserConfigData, Sprite
· ╰── expected on of Types, LightmappedGeneric, Resource/specificPanel.res, UserConfigData, Sprite, EnumInMap
2 │ {
╰────