This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
gitmirror
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
39
Wiki
Activity
Browse Source
Fix issue with propagate_positions
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.66
Erez Shinan
6 years ago
parent
149f7cec1f
commit
c172653ea6
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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):
res = self.node_builder(children)
if isinstance(res, Tree):
if isinstance(res, Tree)
and getattr(res.meta, 'empty', True)
:
res.meta.empty = True
for c in children:
Write
Preview
Loading…
Cancel
Save