diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-01-04 10:42:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 10:42:15 (GMT) |
commit | e09d94a140a5f6903017da9b6ac752ba041d69da (patch) | |
tree | d95ca4734d45f7e853c346e9f73fd3b845864b33 | |
parent | 70f415fb8b632247e28d87998642317ca7a652ae (diff) | |
download | cpython-e09d94a140a5f6903017da9b6ac752ba041d69da.zip cpython-e09d94a140a5f6903017da9b6ac752ba041d69da.tar.gz cpython-e09d94a140a5f6903017da9b6ac752ba041d69da.tar.bz2 |
bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)
-rw-r--r-- | Doc/tools/extensions/peg_highlight.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/extensions/peg_highlight.py b/Doc/tools/extensions/peg_highlight.py index 42101be..27f54cd 100644 --- a/Doc/tools/extensions/peg_highlight.py +++ b/Doc/tools/extensions/peg_highlight.py @@ -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": [ |