Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix invalid escape sequences in the peg_highlight Sphinx extension (G…
…H-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
commit eb05d9c7687dc0ca0f5a23009493eaead2dafca9
2 changes: 1 addition & 1 deletion Doc/tools/extensions/peg_highlight.py
Original file line number Diff line number Diff line change
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