Browse Source

Improved comment

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.0
MegaIng1 4 years ago
parent
commit
ab5bc3f47e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lark/load_grammar.py

+ 2
- 1
lark/load_grammar.py View File

@@ -948,7 +948,8 @@ class GrammarLoader:

rule_names = {}
for name, params, _x, option in rules:
if self.always_keep_all_tokens: # We need to do this somewhere. Might as well prevent an additional loop
# We can't just simply not throw away the tokens later, we need option.keep_all_tokens to correctly generate maybe_placeholders
if self.always_keep_all_tokens:
option.keep_all_tokens = True
if name.startswith('__'):


Loading…
Cancel
Save