Skip to content

Commit e09d94a

Browse files
authored
bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)
1 parent 70f415f commit e09d94a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tools/extensions/peg_highlight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class PEGLexer(RegexLexer):
5656
(_name + _text_ws + r"(\[[\w\d_\*]+?\])" + _text_ws + "(=)", bygroups(None, None, None, None, None),),
5757
],
5858
"invalids": [
59-
(r"^(\s+\|\s+invalid_\w+\s*\n)", bygroups(None)),
60-
(r"^(\s+\|\s+incorrect_\w+\s*\n)", bygroups(None)),
59+
(r"^(\s+\|\s+.*invalid_\w+.*\n)", bygroups(None)),
60+
(r"^(\s+\|\s+.*incorrect_\w+.*\n)", bygroups(None)),
6161
(r"^(#.*invalid syntax.*(?:.|\n)*)", bygroups(None),),
6262
],
6363
"root": [

0 commit comments

Comments
 (0)