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)

(cherry picked from commit e09d94a)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
  • Loading branch information
miss-islington and pablogsal committed Jan 4, 2022
1 parent cf48a14 commit 743394f
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 743394f

Please sign in to comment.