From ff3628c36eab5ec19ab850e9126a951f5c203568 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Fri, 6 Nov 2020 22:25:12 -0300 Subject: Fix subvalue not parsing predicates --- abdl/_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'abdl') diff --git a/abdl/_parser.py b/abdl/_parser.py index a8b17ce..3c38ab2 100644 --- a/abdl/_parser.py +++ b/abdl/_parser.py @@ -103,7 +103,7 @@ def _build_syntax(): + Empty().setParseAction(_vm.End.action)) # multiple value matching - valuesubtree = (Suppress("(") + Group(subtree) + valuesubtree = (Suppress("(") + Group(type_[...] + subtree) + (Suppress(")") | unexpected_token | unexpected_end) + Optional("?", default="")) valuesubtree.setParseAction(_vm.ValueSubtree.action) -- cgit 1.4.1