diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2020-11-06 22:25:12 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2020-11-06 22:25:12 -0300 |
commit | ff3628c36eab5ec19ab850e9126a951f5c203568 (patch) | |
tree | d05f7bf27b0141f779a013bcfa22a16543b33c18 /abdl | |
parent | 436939628ff1c5bbc37d5c91c4a7c68d83f12f49 (diff) |
Fix subvalue not parsing predicates
Diffstat (limited to 'abdl')
-rw-r--r-- | abdl/_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |