Skip to content

Commit 61efe06

Browse files
pablogsalSeth Sims
authored and
Seth Sims
committed
Fix invalid escape sequences in the peg_highlight Sphinx extension (pythonGH-22047)
1 parent e006090 commit 61efe06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tools/extensions/peg_highlight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class PEGLexer(RegexLexer):
5959
include("variables"),
6060
(r"\b(?!(NULL|EXTRA))([A-Z_]+)\b\s*(?!\()", Text,),
6161
(
62-
r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
62+
r"^\s*" + _name + r"\s*" + r"(\[.*\])?" + r"\s*" + r"(\(.+\))?" + r"\s*(:)",
6363
bygroups(Name.Function, None, None, Punctuation),
6464
),
6565
(_name, Name.Function),

0 commit comments

Comments
 (0)