Procházet zdrojové kódy

Merge pull request #936 from lark-parser/fix_issue920

remotes/origin/gm/2021-09-23T00Z/github.com--lark-parser-lark/master
Erez Shinan před 3 roky
committed by GitHub
rodič
revize
9de52fe266
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      lark/lexer.py

+ 1
- 1
lark/lexer.py Zobrazit soubor

@@ -268,7 +268,7 @@ def _create_unless(terminals, g_regex_flags, re_, use_bytes):
for retok in tokens_by_type.get(PatternRE, []):
unless = []
for strtok in tokens_by_type.get(PatternStr, []):
if strtok.priority > retok.priority:
if strtok.priority != retok.priority:
continue
s = strtok.pattern.value
if s == _get_match(re_, retok.pattern.to_regexp(), s, g_regex_flags):


Načítá se…
Zrušit
Uložit