Skip to content

Commit

Permalink
Fix invalid escape sequences in the peg_highlight Sphinx extension (p…
Browse files Browse the repository at this point in the history
…ythonGH-22047)

(cherry picked from commit 5a4a963)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
  • Loading branch information
pablogsal authored and miss-islington committed Sep 2, 2020
1 parent bafaf07 commit eb05d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/tools/extensions/peg_highlight.py
Expand Up @@ -59,7 +59,7 @@ class PEGLexer(RegexLexer):
include("variables"),
(r"\b(?!(NULL|EXTRA))([A-Z_]+)\b\s*(?!\()", Text,),
(
r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
r"^\s*" + _name + r"\s*" + r"(\[.*\])?" + r"\s*" + r"(\(.+\))?" + r"\s*(:)",
bygroups(Name.Function, None, None, Punctuation),
),
(_name, Name.Function),
Expand Down

0 comments on commit eb05d9c

Please sign in to comment.