summary refs log tree commit diff stats
path: root/abdl
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-01-31 20:33:09 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-01-31 20:33:51 -0300
commit77e04d5d7baf432ba6419f0a8b38161de1c76bec (patch)
treed4bf8acc4ea02fe69b4e400cc12b918baf51036e /abdl
parentff3628c36eab5ec19ab850e9126a951f5c203568 (diff)
Fix unexpected token after subvalue raising wrong HEAD default
Diffstat (limited to 'abdl')
-rw-r--r--abdl/_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/abdl/_parser.py b/abdl/_parser.py
index 3c38ab2..074b351 100644
--- a/abdl/_parser.py
+++ b/abdl/_parser.py
@@ -113,6 +113,6 @@ def _build_syntax():
                  + (valuesubtree
                     + Empty().setParseAction(_vm.End.action))[...])
 
-    return ((subtree | unexpected_token) + StringEnd()).parseWithTabs()
+    return ((subtree | unexpected_token) + (StringEnd() | unexpected_token)).parseWithTabs()
 
 BUILT_SYNTAX = _build_syntax()