HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/python.cpython-37.pyc
B

��f���@sPdZddlZddlZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZddlmZmZddlmZmZmZmZmZmZmZmZmZmZmZmZddl m!Z"ddd	d
ddd
dgZ#Gdd�de�Z$e$Z%Gdd
�d
e�Z&Gdd�de�Z'Gdd�de�Z(Gdd	�d	e�Z)e)Z*Gdd�de�Z+Gdd�de�Z,Gdd
�d
e�Z-Gdd�de$�Z.dS)z�
    pygments.lexers.python
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Python and related languages.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�DelegatingLexer�Lexer�
RegexLexer�include�bygroups�using�default�words�combined�
do_insertions�this�line_re)�get_bool_opt�shebang_matches)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�Other�Error�
Whitespace)�	unistring�PythonLexer�PythonConsoleLexer�PythonTracebackLexer�Python2Lexer�Python2TracebackLexer�CythonLexer�DgLexer�
NumPyLexerc$@s<eZdZdZdZdZdddddd	d
gZddd
dddddddddddgZddddgZde	j
e	jfZdd�Z
d d!�Zd"efd#eeejej�fd$eeejej�fd%ejfd&ejfd'efd(efed)�ed*�d+eee�d,fd-eee�d.fd/eeje�d0fd1eeje�d2fed3�gd4eejej�ed5d6�fd7eejej�ed5d8�fd9eejej�ed5d:�fd;eejej�ed5d<�fd=eejej�ed>d6�fd?eejej�ed>d8�fd@eejej�ed>d:�fdAeejej�ed>d<�fdBeejej�dCfdDeejej�dEfdFeejej�dGfdHeejej�dIfdJeejej�edKdC�fdLeejej�edKdE�fdMeejej�edKdG�fdNeejej�edKdI�fdOeejej�edPdC�fdQeejej�edPdE�fdReejej�edPdG�fdSeejej�edPdI�fdTefedU�dVefdWefdXejfedY�edZ�ed[�ed\�ed]�gd^ed_fd`ej dafdbej dafdcefed3�gd^ed_fddedafdcefed3�ge!dedfdg�efe!dhdfdg�ej"fge!didfdg�efe!dhdfdg�ej"fgdjdk�#e$j%�dleee�dmfgdneee&e'�e�fe(da�ge!dodpdfdq�e)j*fdre)j*j+fe!dsdpdfdq�e)j,fge!dtdfdg�e)j-j.fge!dudfdg�e)j/j.fgdve0j1fdwe0j1fdxe0j2fdye0j3fdze0j4fd{e0j5fgd|ee)j6fd|efee)fged[�ee)j-dafe(da�gee)j7dafgd}eeee�fd~e)jfee)jfdeeee�fe(da�gd�eeej�dafd~e)jfd�ej"dafee)jfe(da�gd�ej8fd�ej8fged5�edK�gd�ej8fgd�ej8fedP�geej�eej�e
ej�e
ej�d�ejdafd�ej8fed��gd�ejdafd�ej8fed��gd�ejdafd�ej8fed��gd�ejdafd�ej8fed��gd�ejdafed��d"ejfgd�ejdafed��d"ejfgd�ejdafed��d"ejfgd�ejdafed��d"ejfgd��!Z9d�d��Z:d�S)�rz�
    For Python 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``.
    �Pythonzhttps://www.python.org�python�pyZsage�python3Zpy3ZbazelZstarlarkz*.pyz*.pywz*.pyiz*.jyz*.sagez*.scZ
SConstructZ
SConscriptz*.bzlZBUCK�BUILDzBUILD.bazelZ	WORKSPACEz*.tacz
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[\'"\\]z%|(\{{1,2}))r�Interpol)�ttype�r,�G/opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/python.py�innerstring_rulesCszPythonLexer.innerstring_rulescCs"dtjfdtjdfd|fd|fgS)Nz\}z\{zexpr-inside-fstringz
[^\\\'"{}\n]+z[\'"\\])rr*)r+r,r,r-�
fstring_rulesWs
zPythonLexer.fstring_rulesz\nz&^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")z&^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')z\A#!.+$z#.*$z\\\nz\\�keywordsz
soft-keywordsz(def)((?:\s|\\\s)+)�funcnamez(class)((?:\s|\\\s)+)�	classnamez(from)((?:\s|\\\s)+)�
fromimportz(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)(')�sqsz([uU]?)(""")�stringescapez([uU]?)(''')z
([uU]?)(")z
([uU]?)(')z([bB])(""")�bytesescapez([bB])(''')z	([bB])(")z	([bB])(')z[^\S\n]+�numbersz!=|==|<<|>>|:=|[-~+/*%=<>&^|.]z[]{}:(),;[]z(in|is|and|or|not)\bz
expr-keywords�builtins�
magicfuncs�	magicvars�namez[{([]zexpr-inside-fstring-innerz(=\s*)?(\![sraf])?\}z#popz(=\s*)?(\![sraf])?:z\s+z[])}])z	async for�await�else�for�if�lambda�yieldz
yield fromz\b)�suffix)�True�False�None)�assert�asyncrG�break�continue�del�elifrH�except�finallyrI�globalrJrK�pass�raise�nonlocal�return�try�whilerLz
yield from�as�withz6(^[ \t]*)(match|case)\b(?![ \t]*(?:[:,;=^&|@~)\]}]|(?:�|z)\b))zsoft-keywords-innerz(\s+)([^\n_]*)(_\b))C�
__import__�absZaiter�all�any�bin�bool�	bytearray�
breakpoint�bytes�callable�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�zipz(?<!\.))�prefixrMz+(?<!\.)(self|Ellipsis|NotImplemented|cls)\b)E�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�RecursionErrorZEncodingWarning)^�__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)*�@z(\s+)(as)(\s+)z\.z
(\s*)(,)(\s*)z(\s+)(import)\bzNone\bz\{\{z\}\}z0\\([\\abfnrtv"\']|\n|x[a-fA-F0-9]{2}|[0-7]{1,3})z,\\(N\{.*?\}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})�"z
\\\\|\\"|\\\nzfstrings-double�'z
\\\\|\\'|\\\nzfstrings-singlezstrings-doublezstrings-singlez"""z''')!�rootr5zexpr-inside-fstringzexpr-inside-fstring-innerz
expr-keywordsr0z
soft-keywordszsoft-keywords-innerrCrDrErBrFr1r2r4r3r6r;rAr@zfstrings-singlezfstrings-doublezstrings-singlezstrings-doubler9r:r>r?r7r8r<r=cCst|d�pd|dd�kS)Nzpythonw?(3(\.\d)?)?zimport i�)r)�textr,r,r-�analyse_text�s
zPythonLexer.analyse_textN);rVrTrXrOrF�url�aliases�	filenames�	mimetypes�uniZ	xid_startZxid_continueZuni_namer.r/rrr�Affix�Docr�Hashbang�Singlerrr�	Namespace�Doubler
rr�Wordr*r	ZConstant�join�keyword�kwlistrrrr�Builtin�Pseudor��Function�Magic�Variabler�Float�Oct�Bin�Hex�Integer�	Decorator�Class�Escape�tokensrar,r,r,r-rs�	















	


















c @sfeZdZdZdZdZddgZgZddgZdd	�Z	d
e
fdee
ej
ej�fdee
ej
ej�fd
efdejfdejfdefdefdefdejfdefed�deee�dfdeee�dfdeeje�dfdeeje�dfed�ed�ed �ed!�d"eej
ej�d#fd$eej
ej�d%fd&eej
ej�d'fd(eej
ej�d)fd*eej
ej�ed+d#�fd,eej
ej�ed+d%�fd-eej
ej�ed+d'�fd.eej
ej�ed+d)�fed/�ed0�ged1d2d3�efged4d5d2d6�ejfd7ejjfed8d5d2d6�ejfged9d2d3�ej j!fged:d2d3�ej"j!fgd;e#j$fd<e#j$fd=e#j%fd>e#j&fd?e#j'fd@e#j(j)fdAe#j(fgdBej*fgdCej+fdDefged�dDej dEfe,dE�gdDej-dEfgdFefdGejfdHefdIejfe,dE�gdFefdJejdEfdKejjdEfdLejfe,dE�gdMej.fge	ej�e	ej�dNejdEfdOej.fedP�gdQejdEfdRej.fedS�gdTejdEfedP�d
ejfgdUejdEfedS�d
ejfgdV�Z/dWdX�Z0dYS)Zr a
    For Python 2.x 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.xzhttps://www.python.orgZpython2Zpy2ztext/x-python2zapplication/x-python2cCsdtjfd|fd|fd|fgS)NzG%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]z[^\\\'"%\n]+z[\'"\\]�%)rr*)r+r,r,r-r.�s
zPython2Lexer.innerstring_rulesz\nz&^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")z&^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')z[^\S\n]+z\A#!.+$z#.*$z[]{}:(),;[]z\\\nz\\z(in|is|and|or|not)\bz!=|==|<<|>>|[-~+/*%=<>&^|.]r0z(def)((?:\s|\\\s)+)r1z(class)((?:\s|\\\s)+)r2z(from)((?:\s|\\\s)+)r3z(import)((?:\s|\\\s)+)r4rCrDrE�backtickz!([rR]|[uUbB][rR]|[rR][uUbB])(""")r<z!([rR]|[uUbB][rR]|[rR][uUbB])(''')r=z([rR]|[uUbB][rR]|[rR][uUbB])(")r>z([rR]|[uUbB][rR]|[rR][uUbB])(')r?z([uUbB]?)(""")r@z([uUbB]?)(''')z([uUbB]?)(")z([uUbB]?)(')rFrB)rQrSrTrUrVrHrW�execrXrIrYrJrKrZr�r[r]r^r_rLz
yield fromr`raz\b)rM)Nrcrdrerf�apply�
basestringrgrh�bufferrirkrlrmrn�cmp�coercerorprqrrrsrtrurv�execfile�exit�filerwrxrzr{r|r}r~rr�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�z(?<!\.))r�rMz;(?<!\.)(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�r�r�Z__cmp__Z
__coerce__r�r�r�r�r�r�Z__delslice__Z__div__r�r�r�r�rrrrrrrZ__getslice__rr	Z__hex__r
rZ__idiv__rr
rrrrrrrZ__iop__rrrrrrrrrZ__long__r r!r#r$r%r&r'r(�__nonzero__Z__oct__Z__op__r*r+r,r.r/Z__rcmp__Z__rdiv__r0r1r2r3r4r6r7Z__rop__r8r:r;r<r=r>r?r@rArBZ__setslice__rCrDrErF�__unicode__rG)rIrJrKrLrMrNrOrPrQrR�
__metaclass__rTrUrVrYrZr[z'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?z\d+[eE][+-]?[0-9]+j?z	0[0-7]+j?z
0[bB][01]+z0[xX][a-fA-F0-9]+z\d+Lz\d+j?z`.*?`z@[\w.]+z[a-zA-Z_]\w*z#popz(?:[ \t]|\\\n)+zas\b�,z[a-zA-Z_][\w.]*zimport\bzNone\bz[a-zA-Z_.][\w.]*zY\\([\\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})r]z
\\\\|\\"|\\\nzstrings-doubler^z
\\\\|\\'|\\\nzstrings-singlez"""z''')r_r0rCrDrErBr�rFr1r2r4r3r@zstrings-singlezstrings-doubler>r?r<r=cCs
t|d�S)Nzpythonw?2(\.\d)?)r)r`r,r,r-ra{szPython2Lexer.analyse_textN)1rVrTrXrOrFrbrcrdrer.rrrrgrhrrrirjrrrmrrrkrlr
r	rrqrrr�rsrtrurrvrwrxryrz�Long�Backtickr{rr|r}r~rar,r,r,r-r �s�
















c@s�eZdZdZdgZdgZdeeje	j
�dfdeeje�fde	jdfd	e	jdfd
ej
fgdeeje	j
�fdeeje�fed
�gded
fdeeje�fd
e	jfgd�ZdS)�_PythonConsoleLexerBasezPython console session�pyconztext/x-python-doctestz(>>> )(.*\n)�
continuationsz	(>>>)(\n)z,(\^C)?Traceback \(most recent call last\):\n�	tracebackz  File "[^"]+", line \d+z.*\nz(\.\.\. )(.*\n)z(\.\.\.)(\n)z#popz(?=>>>( |$))z(KeyboardInterrupt)(\n))r_r�r�N)rVrTrXrFrcrerrZPromptr�Coder�	TracebackZOutputrrrr|r~r,r,r,r-r�~s	


r�cs0eZdZdZdZdgZdgZ�fdd�Z�ZS)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 sessionr�ztext/x-python-doctestcsPt|dd�}|rt�t}nt�t}G�fdd�dt�}t�j||tj	f|�dS)Nr(TcseZdZ��fdd�Z�ZS)z6PythonConsoleLexer.__init__.<locals>._ReplaceInnerCodecst�j�ttjf|�dS)N)r�rr�rr�)�self�options)rJ�pylexerr,r-r�sz?PythonConsoleLexer.__init__.<locals>._ReplaceInnerCode.__init__)rVrTrXr�
__classcell__r,)r�)rJr-�_ReplaceInnerCode�sr�)
rrrr r!rr�rrr�)r�r�r(Ztblexerr�)rJ)r�r-r�szPythonConsoleLexer.__init__)	rVrTrXrOrFrcrerr�r,r,)rJr-r�s
c@s�eZdZdZdZddgZddgZddgZd	efd
e	j
dfde	j
fd
e	j
fde	j
dfdefgdee
eje
ee
ee�fdee
eje
ee�fdeeee�e�dfdeeee�fdee	je
ee�dfdee	je�dfed�gde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 TracebackZpytbZpy3tbz*.pytbz*.py3tbztext/x-python-tracebackztext/x-python3-tracebackz\nz-^(\^C)?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\nz^(?=  File "[^"]+", line \d+)z^.*\nz0^(  File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)z%^(  File )("[^"]+")(, line )(\d+)(\n)z^(    )(.+)(\n)�markersz^([ \t]*)(\.\.\.)(\n)z^([^:]+)(: )(.+)(\n)z#popz^([a-zA-Z_][\w.]*)(:?\n)z^( {4,})([~^]+)(\n))r_r�r�N)rVrTrXrOrFrcrdrerrr�rrrrrqrrrrrrr�Markerr~r,r,r,r-r�s<	

c@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)r!z�
    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 TracebackZpy2tbz*.py2tbztext/x-python2-tracebackz^(\^C)?(Traceback.*\n)r�z^(?=  File "[^"]+", line \d+)z^.*\nz0^(  File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)z%^(  File )("[^"]+")(, line )(\d+)(\n)z^(    )(.+)(\n)�markerz^([ \t]*)(\.\.\.)(\n)z^([^:]+)(: )(.+)(\n)z#popz^([a-zA-Z_]\w*)(:?\n)z( {4,})(\^))r_r�r�N)rVrTrXrOrFrcrdrerrrr�rrrqrrrr rrrr�rr~r,r,r,r-r!	s.	
c!@sPeZdZdZdZdZdddgZddd	gZd
dgZde	fd
e
e	ej�fde
e	ej�fde
fdefdefde	fde
fdejfde
eeje�fdefde
eejeeeee�fed�de
ee
�dfde
ee
�dfde
ee�fde
ee
�dfd e
ee
�d!fd"e
ee
�d#fed$�ed%�d&ed'fd(ed)fd*ed+fd,ed-fd.eed/d'�fd0eed/d)�fd1eed/d+�fd2eed/d-�fed3�ed4�ged5d6d7�efd8ejfged9d:d6d;�ejfd<ejjfed=d:d6d;�ejfgd>ejfd?ejfd@ej fdAejj!fdBejfgdCej"fgdDej#fdEefgdEej$dFfgdGej%fdHefdIe
ej$e
�dFfdJe
ej$e
e�fdKedFfdLefdMedFfdNe
dFfdEejfdOe
fg
dEej&dFfgdPe
e
ee
�fdQej'fdRe
e
ee
�fe(dF�gdSe
e
e�dFfdTej'fe(dF�gdUej)fgdVej*fdWefdXefdYefgdefgdZedFfd[ej)fed\�gd]edFfd^ej)fed\�gd_edFfed\�ed`�gdaedFfed\�ed`�gdb�Z+dcS)dr"zF
    For Pyrex and Cython source code.

    .. versionadded:: 1.1
    ZCythonzhttps://cython.orgZcythonZpyxZpyrexz*.pyxz*.pxdz*.pxiz
text/x-cythonzapplication/x-cythonz\nz^(\s*)("""(?:.|\n)*?""")z^(\s*)('''(?:.|\n)*?''')z[^\S\n]+z#.*$z[]{}:(),;[]z\\\nz\\z(in|is|and|or|not)\bz(<)([a-zA-Z0-9.?]+)(>)z!=|==|<<|>>|[-~+/*%=<>&^|.?]z(from)(\d+)(<=)(\s+)(<)(\d+)(:)r0z(def|property)(\s+)r1z
(cp?def)(\s+)�cdefz	(cdef)(:)z(class|struct)(\s+)r2z(from)(\s+)r3z(c?import)(\s+)r4rCr�z(?:[rR]|[uU][rR]|[rR][uU])"""r<z(?:[rR]|[uU][rR]|[rR][uU])'''r=z(?:[rR]|[uU][rR]|[rR][uU])"r>z(?:[rR]|[uU][rR]|[rR][uU])'r?z[uU]?"""r@z[uU]?'''z[uU]?"z[uU]?'rFrB)rQrRrGrSZbyrTZctypedefrUrVrHrWzexcept?r�rXrIZfusedZgilrYrJrrKZnogilrZr�r[r]r^r_rLr`raz\b)rMz(DEF|IF|ELIF|ELSE)\b)Qrcrdrerfr�r�rgZbintrhr�rirkrlrmrnr�r�rorprqrrrsrtrurvr�r�r�rwrxrzr{r|r}r~rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�Z
Py_ssize_tr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�Zunsignedr�r�r�z(?<!\.))r�rMz<(?<!\.)(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+z0[xX][a-fA-F0-9]+z\d+Lz\d+z`.*?`z@\w+z[a-zA-Z_]\w*z#popz%(public|readonly|extern|api|inline)\bz(struct|enum|union|class)\bz([a-zA-Z_]\w*)(\s*)(?=[(:#=]|$)z([a-zA-Z_]\w*)(\s*)(,)zfrom\bzas\b�:z	(?=["\'])�.z(\s+)(as)(\s+)z[a-zA-Z_][\w.]*z
(\s*)(,)(\s*)z(\s+)(c?import)\bz[a-zA-Z_.][\w.]*zY\\([\\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})zP%(\([a-zA-Z0-9]+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]z[^\\\'"%\n]+z[\'"\\]rr]z
\\\\|\\"|\\\n�stringsr^z
\\\\|\\'|\\\nz"""�nlz''')r_r0rCrBr�rFr1r�r2r4r3r@r�r�r>r?r<r=N),rVrTrXrOrFrbrcrdrerrrrhrrrrrmr�Typerrzrrr
r	ZPreprocrqrrr�rvrwryr�r�r{rs�Reservedr|rkrr}r*r~r,r,r,r-r"9s�






c@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,
    a functional and object-oriented programming language
    running on the CPython 3 VM.

    .. versionadded:: 1.6
    Zdgz*.dgz	text/x-dgz\s+z#.*?$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?)'''r@r=�stringz(?i)(br|r?b?)"""r<z(?i)(br|r?b?)'r?z(?i)(br|r?b?)"r>z`\w+'*`z\b(and|in|is|or|where)\bz[!$%&*+\-./:<-@\\^|~;,]+)rhrirkrnrprrzdict'rxrzr�r�zlist'r�r�r�r�r�zset'r�r�r�r�r�ztuple'r�z(?<!\.)z
(?![\'\w]))r�rM)=rcrdrerfrg�bindrmr�rorprqrsrtZdrop�	dropwhilerurvZexhaustrwZflipzfoldl1?ryZfstr{r|r}r~�headrr��initr�r�r�r�Ziterate�lastr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�zscanl1?Zsndr�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�zY\\([\\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})zG%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]z[^\\\'"%\n]+z[\'"\\]rz\nr]z#popr^z"""z''')r_r@r�r>r?r<r=N)"rVrTrXrOrFrcrdrerrrjrrxrwryrvrzrr
rrmr	rrqrrr�rr�r�rrr}r*r~r,r,r,r-r#�sj


c�@sXeZdZdZdZdZdgZgZgZddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dd�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d��d�d�d�d�d�d�d�d�d�d	�d
�d�d�d
�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d �d!�d"�d#�d$�d%�d&�d'�d(�d)�d*�d+�d,�d-�d.�d/�d0�d1�d2�d3�d4�d5�d6�d7�d8�d9�d:�d;�d<�d=�d>�d?�d@�dA�dB�dC�dD�dE�dF�dG�dH�dI�dJ�dK�dL�dM�dN�dO�dP�dQ�dR�dS�dT�dU�dV�dW�dX�dY�dZ�d[�d\�d]�d^�d_�d`�da�db�dc�dd�de�df�dg�dh�di�dj�dk�dl�dm�dn�do�dp�dq�dr�ds�dt�du�dv�dw�dx�dy�dz�d{�d|�d}�d~�d�d��d��d��d��d��d��d��h�Z	�d��d��Z
�d��d��Z�d�S(�r$z[
    A Python lexer recognizing Numerical Python builtins.

    .. versionadded:: 0.10
    ZNumPyzhttps://numpy.org/�numpyrd�absolute�
accumulate�add�alenreZallcloseZalltrueZalterdotZamaxZaminZanglerf�appendZapply_along_axisZapply_over_axesZarangeZarccosZarccoshZarcsinZarcsinhZarctanZarctan2ZarctanhZargmaxZargminZargsortZargwhereZaround�arrayZarray2stringZarray_equalZarray_equivZ
array_reprZarray_splitZ	array_strZ
arrayrangeZ
asanyarrayZasarrayZasarray_chkfiniteZascontiguousarrayZasfarrayZasfortranarrayZasmatrixZasscalarZastypeZ
atleast_1dZ
atleast_2dZ
atleast_3dZaverageZbartlettZ	base_repr�betaZbinary_reprZbincountZbinomialZbitwise_andZbitwise_notZ
bitwise_orZbitwise_xorZblackmanZbmat�	broadcastZbyte_boundsrkZbyteswapZc_Zcan_cast�ceil�chooseZclipZcolumn_stackZcommon_typeZcompare_chararrays�compressZconcatenateZconj�	conjugateZconvolve�copyZcorrcoefZ	correlate�cos�coshZcovZcrossZcumprodZ
cumproductZcumsum�deleteZ	deprecateZdiagZdiagflatZdiagonalZdiffZdigitizeZdisp�divide�dotZdsplitZdstackZdtype�dump�dumpsZediff1d�emptyZ
empty_like�equal�expZexpand_dims�expm1�extractZeye�fabsZfastCopyAndTransposeZfftZfftfreqZfftshift�fillZfinfoZfixZflatZflatnonzero�flattenZfliplrZflipud�floorZfloor_divide�fmod�frexpZ
fromarraysZ
frombufferZfromfileZfromfunctionZfromiterZ
frompyfunc�
fromstringZgenericZget_array_wrapZget_includeZget_numarray_includeZget_numpy_includeZget_printoptions�	getbufferZ
getbufsizeZgeterrZ
geterrcallZ	geterrobjZgetfieldZgradientZgreaterZ
greater_equalZgumbelZhammingZhanningZ	histogramZhistogram2dZhistogramddZhsplitZhstack�hypotZi0�identityZifft�imagZ	index_exp�indices�inf�info�inner�insertZint_asbufferZinterpZintersect1dZintersect1d_nu�inv�invertZ	iscomplexZiscomplexobj�isfiniteZ	isfortran�isinf�isnanZisneginfZisposinfZisrealZ	isrealobjZisscalarZissctypeZissubclass_Z
issubdtypeZissubsctype�itemZitemset�iterableZix_ZkaiserZkron�ldexpZ
left_shiftZlessZ
less_equalZlexsortZlinspace�load�loadsZloadtxt�log�log10�log1p�log2�logical_andZlogical_not�
logical_or�logical_xorZlogspaceZlstsq�matZmatrixr��maximumZmaximum_sctypeZmay_share_memoryZmeanZmedianZmeshgridZmgridr�ZminimumZmintypecode�mod�modfZmsort�multiply�nanZ
nan_to_numZ	nanargmaxZ	nanargminZnanmaxZnanminZnansumZndenumerate�ndimZndindex�negativeZnewaxisZ	newbufferZnewbyteorderZnonzero�	not_equalZ
obj2sctypeZogridZonesZ	ones_like�outerZpermutationZ	piecewiseZpinvZpkgloadZplaceZpoissonZpolyZpoly1dZpolyaddZpolyderZpolydivZpolyfitZpolyintZpolymulZpolysubZpolyval�power�prod�productZptp�putZputmaskZr_�randintZrandom_integersZ
random_sampleZranfZrankZravel�realZ
real_if_closeZrecarrayZ
reciprocalr��	remainder�repeat�requireZreshape�resizeZ
restoredotZright_shiftZrintZrollZrollaxis�rootsZrot90r�Zround_Z	row_stackZs_�sampleZsavetxtZsctype2charZsearchsorted�seed�selectZset_numeric_opsZset_printoptionsZset_string_functionZ
setbufsizeZ	setdiff1dZseterrZ
seterrcallZ	seterrobjZsetfieldZsetflagsZsetmember1dZsetxor1d�shapeZshow_config�shuffle�signZsignbit�sinZsinc�sinh�sizer�ZsolveZsometrue�sortZsort_complex�source�split�sqrtZsquareZsqueezeZstandard_normalZstd�subtractr�ZsvdZswapaxesr��tan�tanhZ	tensordot�testZtileZtofile�tolist�tostring�traceZ	transposeZtrapzZtriZtrilZ
trim_zerosZtriuZtrue_divideZtypeDict�typename�uniformZunion1d�uniqueZunique1dZ
unravel_index�unwrapZvander�varZvdotZ	vectorize�viewZvonmisesZvsplitZvstackZweibull�whereZwho�zerosZ
zeros_likeccsNxHt�||�D]8\}}}|tkr:||jkr:|tj|fVq|||fVqWdS)N)r�get_tokens_unprocessedr�EXTRA_KEYWORDSrrr)r�r`�index�token�valuer,r,r-r&�s
z!NumPyLexer.get_tokens_unprocessedcCs.|dd�}t|d�sd|ko,d|kp,d|kS)Ni�zpythonw?(3(\.\d)?)?zimport zimport numpyzfrom numpy import)r)r`Zltextr,r,r-ra�s
zNumPyLexer.analyse_textN)rVrTrXrOrFrbrcrerdr'r&rar,r,r,r-r$Ps�












 ")/rO�reroZpygments.lexerrrrrrrrr	r
rrr
Z
pygments.utilrrZpygments.tokenrrrrrrrrrrrrZpygmentsrrf�__all__rZPython3Lexerr r�rrZPython3TracebackLexerr!r"r#r$r,r,r,r-�<module>	s288
^$.605c