diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-01-04 11:03:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 11:03:46 (GMT) |
commit | 743394f2811796b30b618d4cb6dd582715f8638c (patch) | |
tree | 28dc1ff2c2c6ea2795c54307cd68a5183d5b52f5 /Doc/tools | |
parent | cf48a148190a6ccadc144cab2e2046e95c20fb57 (diff) | |
download | cpython-743394f2811796b30b618d4cb6dd582715f8638c.zip cpython-743394f2811796b30b618d4cb6dd582715f8638c.tar.gz cpython-743394f2811796b30b618d4cb6dd582715f8638c.tar.bz2 |
bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)
(cherry picked from commit e09d94a140a5f6903017da9b6ac752ba041d69da)
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 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": [ |