summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-01-19 14:45:50 (GMT)
committerGitHub <noreply@github.com>2022-01-19 14:45:50 (GMT)
commit353674f289076eecf848d7a26871cce529b89a98 (patch)
tree1a0559d8c37bc68004f4a33b905e409601d23a76 /Doc/tools
parent7b694b816f30c463ffcab0952d3319320d23e154 (diff)
downloadcpython-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.py4
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": [