| Server IP : 217.160.0.135 / Your IP : 216.73.216.115 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/IPython/lib/__pycache__/ |
Upload File : |
�
�@�c�N � �\ � d Z ddlZddlmZmZmZmZmZmZm Z m
Z
ddlmZm
Z
mZmZmZmZ ddlmZmZmZmZmZmZmZmZ ddlmZ ej d� � Zg d�Zd � Z e d
�� � Z! e d�� � Z" G d
� de� � Z# G d� de
� � Z$ G d� de� � Z% G d� de� � Z&dS )a;
Defines a variety of Pygments lexers for highlighting IPython code.
This includes:
IPythonLexer, IPython3Lexer
Lexers for pure IPython (python + magic/shell commands)
IPythonPartialTracebackLexer, IPythonTracebackLexer
Supports 2.x and 3.x via keyword `python3`. The partial traceback
lexer reads everything but the Python code appearing in a traceback.
The full lexer combines the partial lexer with an IPython lexer.
IPythonConsoleLexer
A lexer for IPython console sessions, with support for tracebacks.
IPyLexer
A friendly lexer which examines the first line of text and from it,
decides whether to use an IPython lexer or an IPython console lexer.
This is probably the only lexer that needs to be explicitly added
to Pygments.
� N)� BashLexer� HtmlLexer�JavascriptLexer� RubyLexer� PerlLexer�PythonLexer�Python3Lexer�TexLexer)�Lexer�DelegatingLexer�
RegexLexer�
do_insertions�bygroups�using)�Generic�Keyword�Literal�Name�Operator�Other�Text�Error)�get_bool_optz.*?
)�build_ipy_lexer�
IPython3Lexer�IPythonLexer�IPythonPartialTracebackLexer�IPythonTracebackLexer�IPythonConsoleLexer�IPyLexerc �j
� | rt }d}dg}d}nt }d}ddg}d}dt t t t t |� � � � fd t t t t t |� � � � fd
t t t t t t � � � � fdt t t t t t � � � � fdt t t t t t � � � � fd
t t t t t t � � � � fdt t t t t t � � � � fdt t t t t |� � � � fdt t t t t |� � � � fdt t t t t |� � � � fdt t t t t t � � � � fdt t t t t t � � � � fdt t t t t t � � � � fdt t t t t |� � � � fdt t t t t |� � � � fdt t t t t |� � � � fdt t t t t |� � � � fdt t t t t � � fdt t t t t t � � � � fdt t t t � � fdt t t � � fdt t t t t � � t � � fdt t t t � � fdt t t t � � t � � fd t t t t � � t � � fd!t t t t � � fd"t t t t � � fg}|j
� � � }||d# z |d#<