mirror of https://github.com/python/cpython
bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)
This commit is contained in:
parent
70f415fb8b
commit
e09d94a140
|
@ -56,8 +56,8 @@ class PEGLexer(RegexLexer):
|
|||
(_name + _text_ws + r"(\[[\w\d_\*]+?\])" + _text_ws + "(=)", bygroups(None, None, None, None, None),),
|
||||
],
|
||||
"invalids": [
|
||||
(r"^(\s+\|\s+invalid_\w+\s*\n)", bygroups(None)),
|
||||
(r"^(\s+\|\s+incorrect_\w+\s*\n)", bygroups(None)),
|
||||
(r"^(\s+\|\s+.*invalid_\w+.*\n)", bygroups(None)),
|
||||
(r"^(\s+\|\s+.*incorrect_\w+.*\n)", bygroups(None)),
|
||||
(r"^(#.*invalid syntax.*(?:.|\n)*)", bygroups(None),),
|
||||
],
|
||||
"root": [
|
||||
|
|
Loading…
Reference in New Issue