Browse Source

Fix propagate positions

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.6
night199uk 6 years ago
parent
commit
067ade56d9
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

@@ -133,9 +133,9 @@ class ParseTreeBuilder:
expand_single_child = options.expand1 if options else False

wrapper_chain = filter(None, [
self.propagate_positions and PropagatePositions,
(expand_single_child and not rule.alias) and ExpandSingleChild,
maybe_create_child_filter(rule.expansion, keep_all_tokens, self.ambiguous),
self.propagate_positions and PropagatePositions,
])

yield rule, wrapper_chain


Loading…
Cancel
Save