diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-09-02 14:29:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 14:29:38 (GMT) |
commit | 5a4a963a6c798fa9207a9998618a9c0ec3b6b6d7 (patch) | |
tree | 068dd12b10c6c4bdfdf85f44aec129b41a7856e6 /Doc | |
parent | f9c5e3f5f61cd380f8a17c814766fc3730b7fbdf (diff) | |
download | cpython-5a4a963a6c798fa9207a9998618a9c0ec3b6b6d7.zip cpython-5a4a963a6c798fa9207a9998618a9c0ec3b6b6d7.tar.gz cpython-5a4a963a6c798fa9207a9998618a9c0ec3b6b6d7.tar.bz2 |
Fix invalid escape sequences in the peg_highlight Sphinx extension (GH-22047)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tools/extensions/peg_highlight.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/extensions/peg_highlight.py b/Doc/tools/extensions/peg_highlight.py index f02515d..8bc2467 100644 --- a/Doc/tools/extensions/peg_highlight.py +++ b/Doc/tools/extensions/peg_highlight.py @@ -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), |