menus: Simplify grammar a bit

Again no syntax changes, just refactoring the rules.
This commit is contained in:
James Westman 2023-04-29 21:37:13 -05:00
parent 71f52d350a
commit 779e27d7ac

View file

@ -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",