implement variant parsing

This commit is contained in:
jgcodes2020 2024-12-24 08:50:37 -05:00
parent bc10ccee0c
commit be667a2b9c
4 changed files with 139 additions and 16 deletions

View file

@ -137,7 +137,10 @@ menu_attribute = Group(
[
UseIdent("name"),
":",
Err(AnyOf(StringValue, VariantValue), "Expected string or translated string"),
Err(
AnyOf(StringValue, VariantValue),
"Expected string, translated string, or variant",
),
Match(";").expected(),
],
)