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("{"),
Until(
AnyOf(
menu_section,
menu_submenu,
menu_item_shorthand,
menu_item,
menu_child,
Fail(
menu_attribute,
"Attributes are not permitted at the top level of a menu",