mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
menus: Simplify grammar a bit
Again no syntax changes, just refactoring the rules.
This commit is contained in:
parent
71f52d350a
commit
779e27d7ac
1 changed files with 1 additions and 4 deletions
|
@ -172,10 +172,7 @@ menu: Group = Group(
|
||||||
Match("{"),
|
Match("{"),
|
||||||
Until(
|
Until(
|
||||||
AnyOf(
|
AnyOf(
|
||||||
menu_section,
|
menu_child,
|
||||||
menu_submenu,
|
|
||||||
menu_item_shorthand,
|
|
||||||
menu_item,
|
|
||||||
Fail(
|
Fail(
|
||||||
menu_attribute,
|
menu_attribute,
|
||||||
"Attributes are not permitted at the top level of a menu",
|
"Attributes are not permitted at the top level of a menu",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue