Skip to content

Commit

Permalink
bpo-46231: Remove invalid_* rules preceded by more tokens from the gr…
Browse files Browse the repository at this point in the history
…ammar docs (GH-30341)
  • Loading branch information
pablogsal committed Jan 4, 2022
1 parent 70f415f commit e09d94a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tools/extensions/peg_highlight.py
Expand Up @@ -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": [
Expand Down

0 comments on commit e09d94a

Please sign in to comment.