Browse Source

Fix issue with propagate_positions

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.66
Erez Shinan 7 years ago
parent
commit
c172653ea6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/parse_tree_builder.py

+ 1
- 1
lark/parse_tree_builder.py View File

@@ -27,7 +27,7 @@ class PropagatePositions:
def __call__(self, children): def __call__(self, children):
res = self.node_builder(children) res = self.node_builder(children)


if isinstance(res, Tree):
if isinstance(res, Tree) and getattr(res.meta, 'empty', True):
res.meta.empty = True res.meta.empty = True


for c in children: for c in children:


Loading…
Cancel
Save