Fix invalid escape sequences in the peg_highlight Sphinx extension (GH-22047)
This commit is contained in:
parent
f9c5e3f5f6
commit
5a4a963a6c
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue