diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-01-19 14:45:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 14:45:50 (GMT) |
commit | 353674f289076eecf848d7a26871cce529b89a98 (patch) | |
tree | 1a0559d8c37bc68004f4a33b905e409601d23a76 /Doc/tools | |
parent | 7b694b816f30c463ffcab0952d3319320d23e154 (diff) | |
download | cpython-353674f289076eecf848d7a26871cce529b89a98.zip cpython-353674f289076eecf848d7a26871cce529b89a98.tar.gz cpython-353674f289076eecf848d7a26871cce529b89a98.tar.bz2 |
bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341) (GH-30392)
(cherry picked from commit e09d94a140a5f6903017da9b6ac752ba041d69da)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Doc/tools')
-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 8bc2467..4262687 100644 --- a/Doc/tools/extensions/peg_highlight.py +++ b/Doc/tools/extensions/peg_highlight.py @@ -45,8 +45,8 @@ class PEGLexer(RegexLexer): ], "variables": [(_name + _text_ws + "(=)", bygroups(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": [ |