summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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": [