Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/lib/__pycache__/lexers.cpython-39.pyc
Ðазад
a o�h�Q � @ s� d Z ddlZddlmZmZmZmZmZmZm Z m Z ddlmZm Z mZmZmZmZ ddlmZmZmZmZmZmZmZmZ ddlmZ e�d�Zg d�Zd d � Z e dd�Z!e d d�Z"G dd� de�Z#G dd� de �Z$G dd� de�Z%G dd� 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 C s\ | rt }d}dg}d}nt}d}ddg}d}dttttt|��fd ttttt|��fd tttttt��fdtttttt��fdtttttt��fd tttttt��fdtttttt ��fdttttt|��fdttttt|��fdttttt|��fdtttttt��fdtttttt ��fdtttttt ��fdttttt|��fdttttt|��fdttttt|��fdttttt|��fdttttt�fdtttttt��fdtttt�fdttt�fdttttt�t�fdtttt�fdtttt�t�fd tttt�t�fd!tttt�fd"tttt�fg}|j �� }||d# |d#<