From a2a029f058577ae807b674154c370ee84b51a858 2018-10-11 10:58:31 From: Matthias Geier Date: 2018-10-11 10:58:31 Subject: [PATCH] Fix %%perl highlighting --- diff --git a/IPython/lib/lexers.py b/IPython/lib/lexers.py index fd42880..a8c8710 100644 --- a/IPython/lib/lexers.py +++ b/IPython/lib/lexers.py @@ -88,7 +88,7 @@ def build_ipy_lexer(python3): (r'(?s)(\s*)(%%javascript)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(JavascriptLexer))), (r'(?s)(\s*)(%%js)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(JavascriptLexer))), (r'(?s)(\s*)(%%latex)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(TexLexer))), - (r'(?s)(\s*)(%%pypy)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(PerlLexer))), + (r'(?s)(\s*)(%%perl)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(PerlLexer))), (r'(?s)(\s*)(%%prun)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(PyLexer))), (r'(?s)(\s*)(%%pypy)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(PyLexer))), (r'(?s)(\s*)(%%python)([^\n]*\n)(.*)', bygroups(Text, Operator, Text, using(PyLexer))),