mirror of
https://github.com/python/cpython.git
synced 2024-11-24 17:47:13 +01:00
This commit is contained in:
parent
09c2947581
commit
ef940dec40
@ -16,6 +16,7 @@ class PEGLexer(RegexLexer):
|
||||
- Rule types
|
||||
- Rule options
|
||||
- Rules named `invalid_*` or `incorrect_*`
|
||||
- Rules with `RAISE_SYNTAX_ERROR`
|
||||
"""
|
||||
|
||||
name = "PEG"
|
||||
@ -59,6 +60,7 @@ class PEGLexer(RegexLexer):
|
||||
(r"^(\s+\|\s+.*invalid_\w+.*\n)", bygroups(None)),
|
||||
(r"^(\s+\|\s+.*incorrect_\w+.*\n)", bygroups(None)),
|
||||
(r"^(#.*invalid syntax.*(?:.|\n)*)", bygroups(None),),
|
||||
(r"^(\s+\|\s+.*\{[^}]*RAISE_SYNTAX_ERROR[^}]*\})\n", bygroups(None)),
|
||||
],
|
||||
"root": [
|
||||
include("invalids"),
|
||||
|
Loading…
Reference in New Issue
Block a user