Browse Source

Raw docstring to avoid escape warnings (Issue #438)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.7.4
Erez Sh 5 years ago
parent
commit
b6b95c3ff0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/lexer.py

+ 1
- 1
lark/lexer.py View File

@@ -268,7 +268,7 @@ def build_mres(terminals, match_whole=False):
return _build_mres(terminals, len(terminals), match_whole)

def _regexp_has_newline(r):
"""Expressions that may indicate newlines in a regexp:
r"""Expressions that may indicate newlines in a regexp:
- newlines (\n)
- escaped newline (\\n)
- anything but ([^...])


Loading…
Cancel
Save