Explorar el Código

Improved comment

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.0
MegaIng1 hace 4 años
padre
commit
ab5bc3f47e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      lark/load_grammar.py

+ 2
- 1
lark/load_grammar.py Ver fichero

@@ -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('__'):


Cargando…
Cancelar
Guardar