mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
implement variant parsing
This commit is contained in:
parent
bc10ccee0c
commit
be667a2b9c
4 changed files with 139 additions and 16 deletions
|
@ -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(),
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue