HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/python.cpython-38.pyc
U

G�
\1��@s*dZddlZddlmZmZmZmZmZmZm	Z	m
Z
mZddlm
Z
mZddlmZmZmZmZmZmZmZmZmZmZmZddlmZddd	d
ddd
dgZe�d�Z Gdd�de�Z!Gdd
�d
e�Z"Gdd�de�Z#Gdd	�d	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-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)	�Lexer�
RegexLexer�include�bygroups�using�default�words�combined�
do_insertions)�get_bool_opt�shebang_matches)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�Other�Error)�	unistring�PythonLexer�PythonConsoleLexer�PythonTracebackLexer�Python3Lexer�Python3TracebackLexer�CythonLexer�DgLexer�
NumPyLexerz.*?
c @sreZdZdZdZdddgZdddd	d
ddgZd
dgZdd�Zde	fde
e	ejej
�fde
e	ejej
�fde	fdejfdejfdefde	fde	fdejfdefed�de
ee	�dfde
ee	�d fd!e
eje	�d"fd#e
eje	�d$fed%�ed&�ed'�ed(�d)e
ejej�d*fd+e
ejej�d,fd-e
ejej�d.fd/e
ejej�d0fd1e
ejej�ed2d*�fd3e
ejej�ed2d,�fd4e
ejej�ed2d.�fd5e
ejej�ed2d0�fed6�ed7�ged8d9d:�efged;d<d9d=�ejfd>ejjfed?d<d9d=�ejfged@d9d:�ejjfgedAd9d:�ej jfgdBe!j"fdCe!j"fdDe!j#fdEe!j$fdFe!j%fdGe!j&j'fdHe!j&fgdIej(fgdJej)fdKefged&�dKejdLfe*dL�gdKej+dLfgdMe	fdNejfdOefdPejfe*dL�gdMe	fdQejdLfdRejjdLfdSejfe*dL�gdTej,fgeej�eej�dUejdLfdVej,fedW�gdXejdLfdYej,fedZ�gd[ejdLfedW�dejfgd\ejdLfedZ�dejfgd]�Z-d^d_�Z.d`S)arz<
    For `Python <http://www.python.org>`_ source code.
    �Python�python�pyZsagez*.pyz*.pywz*.scZ
SConstructZ
SConscriptz*.tacz*.sagez
text/x-pythonzapplication/x-pythoncCsdtjfd|fd|fd|fgS)N�G%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]�[^\\\'"%\n]+�[\'"\\]�%�r�Interpol�Zttype�r+�8/usr/lib/python3/dist-packages/pygments/lexers/python.py�innerstring_rules&s��zPythonLexer.innerstring_rules�\nz&^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")z&^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')�[^\S\n]+z\A#!.+$�#.*$�[]{}:(),;[]�\\\n�\\�(in|is|and|or|not)\bz!=|==|<<|>>|[-~+/*%=<>&^|.]�keywordsz(def)((?:\s|\\\s)+)�funcnamez(class)((?:\s|\\\s)+)�	classnamez(from)((?:\s|\\\s)+)�
fromimportz(import)((?:\s|\\\s)+)�import�builtins�
magicfuncs�	magicvars�backtickz!([rR]|[uUbB][rR]|[rR][uUbB])(""")�tdqsz!([rR]|[uUbB][rR]|[rR][uUbB])(''')�tsqsz([rR]|[uUbB][rR]|[rR][uUbB])(")�dqsz([rR]|[uUbB][rR]|[rR][uUbB])(')�sqsz([uUbB]?)(""")�stringescapez([uUbB]?)(''')z([uUbB]?)(")z([uUbB]?)(')�name�numbers)�assert�break�continue�del�elif�else�except�exec�finally�for�global�if�lambda�pass�print�raise�return�try�while�yield�
yield from�as�with�\b��suffix)N�
__import__�abs�all�any�apply�
basestring�bin�bool�buffer�	bytearray�bytes�callable�chr�classmethod�cmp�coerce�compile�complex�delattr�dict�dir�divmod�	enumerate�eval�execfile�exit�file�filter�float�	frozenset�getattr�globals�hasattr�hash�hex�id�input�int�intern�
isinstance�
issubclass�iter�len�list�locals�long�map�max�min�next�object�oct�open�ord�pow�property�range�	raw_input�reduce�reload�repr�reversed�round�set�setattr�slice�sorted�staticmethod�str�sum�super�tuple�type�unichr�unicode�vars�xrange�zip�(?<!\.)��prefixr^z;(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|cls)\b)5�ArithmeticError�AssertionError�AttributeError�
BaseException�DeprecationWarning�EOFError�EnvironmentError�	Exception�FloatingPointError�
FutureWarning�
GeneratorExit�IOError�ImportError�
ImportWarning�IndentationError�
IndexError�KeyError�KeyboardInterrupt�LookupError�MemoryError�ModuleNotFoundError�	NameError�NotImplemented�NotImplementedError�OSError�
OverflowError�OverflowWarning�PendingDeprecationWarning�RecursionError�ReferenceError�RuntimeError�RuntimeWarning�
StandardError�
StopIteration�StopAsyncIteration�SyntaxError�
SyntaxWarning�SystemError�
SystemExit�TabError�	TypeError�UnboundLocalError�UnicodeDecodeError�UnicodeEncodeError�UnicodeError�UnicodeTranslateError�UnicodeWarning�UserWarning�
ValueError�VMSError�Warning�WindowsError�ZeroDivisionError)_�__abs__�__add__�__and__�__call__Z__cmp__Z
__coerce__�__complex__�__contains__�__del__�__delattr__�
__delete__�__delitem__Z__delslice__Z__div__�
__divmod__�	__enter__�__eq__�__exit__�	__float__�__floordiv__�__ge__�__get__�__getattr__�__getattribute__�__getitem__Z__getslice__�__gt__�__hash__Z__hex__�__iadd__�__iand__Z__idiv__�
__ifloordiv__�__ilshift__�__imod__�__imul__�	__index__�__init__�__instancecheck__�__int__�
__invert__Z__iop__�__ior__�__ipow__�__irshift__�__isub__�__iter__�__itruediv__�__ixor__�__le__�__len__Z__long__�
__lshift__�__lt__�__missing__�__mod__�__mul__�__ne__�__neg__�__new__Z__nonzero__Z__oct__Z__op__�__or__�__pos__�__pow__�__radd__�__rand__Z__rcmp__Z__rdiv__�__rdivmod__�__repr__�__reversed__�
__rfloordiv__�__rlshift__�__rmod__�__rmul__Z__rop__�__ror__�__rpow__�__rrshift__�
__rshift__�__rsub__�__rtruediv__�__rxor__�__set__�__setattr__�__setitem__Z__setslice__�__str__�__sub__�__subclasscheck__�__truediv__Z__unicode__�__xor__)�	__bases__�	__class__�__closure__�__code__�__defaults__�__dict__�__doc__�__file__�__func__�__globals__Z
__metaclass__�
__module__�__mro__�__name__�__self__�	__slots__�__weakref__z'(\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*�#popz(?:[ \t]|\\\n)+�as\b�,�[a-zA-Z_][\w.]*zimport\bzNone\b�[a-zA-Z_.][\w.]*�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�strings-double�'�
\\\\|\\'|\\\n�strings-single�"""�''')�rootr5r:r;r<rDr=rCr6r7r9r8rBrRrOr@rAr>r?cCst|d�pd|dd�kS)N�pythonw?(2(\.\d)?)?�import ���r��textr+r+r,�analyse_text�s
�zPythonLexer.analyse_textN)/r?r=�__qualname__r9rC�aliases�	filenames�	mimetypesr-r
rrZAffix�DocrZHashbang�Singlerr�Wordrr�	Namespace�Doubler	rr�Builtin�Pseudor��Function�Magic�Variabler�Float�Oct�Bin�Hex�Integer�Long�Backtick�	Decoratorr�Class�Escape�tokensr\r+r+r+r,rs8
�������������-���	�
�����#������

�
��
�
��
�
��
�
�
�
���>c@s�eZdZdZdZddgZgZddgZej	ej
BZdej
ejfZdd	�Zej��Zed
dd�efed
dd�ejfged<edddd�ejfdejjfedddd�ejfged<eddd�ejjfged<eddd�ejjfged<dejfdejfdej fdej!fdej"fdej#fged<ged <d!ej$fd"e%feefged#<eejd$fged%<eej&d$fged&<d'e'e(ee(�fd(ej)feej)fd)e'e(e%e(�fe*d$�ged*<d+e'e(e�d$fd(ej)feej)fe*d$�ged,<ee+j,�ed-<ee+j-�ed.<d/d0�Z.d1S)2rzf
    For `Python <http://www.python.org>`_ source code (version 3.0).

    .. versionadded:: 0.10
    zPython 3�python3Zpy3ztext/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]+r&z%|(\{{1,2})r(r*r+r+r,r-s���zPython3Lexer.innerstring_rules)rE�async�awaitrFrGrHrIrJrKrMrNrOrPrQrRrT�nonlocalrUrVrWrXrYrZr[r\r])�True�False�Noner5)Ar_r`rarbrerfrhrirkrlrmrorprqrrrsrtrurvrzr{�formatr|r}r~rr�r�r�r�r�r�r�r�r�r�r�r�r��
memoryviewr�r�r�r�r�r�r�rSr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�z+(?<!\.)(self|Ellipsis|NotImplemented|cls)\b)Ar�r�r�r��BufferError�BytesWarningr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��ResourceWarningr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��BlockingIOError�ChildProcessError�ConnectionError�BrokenPipeError�ConnectionAbortedError�ConnectionRefusedError�ConnectionResetError�FileExistsError�FileNotFoundError�InterruptedError�IsADirectoryError�NotADirectoryError�PermissionError�ProcessLookupError�TimeoutErrorr:)_r�r��
__aenter__�	__aexit__�	__aiter__r��	__anext__�	__await__�__bool__�	__bytes__r�r�r�r�r�r�r��__dir__r�r�r�r�r�r��
__format__r�r�r�r�r�r�r�r�r�r�r��__imatmul__rr_rrrrrrrrr	r
rrr
rr�__length_hint__rr�
__matmul__rrrrrr�__next__rrr�__prepare__rrrrrr r!�__rmatmul__r"r#r$�	__round__r%r&r'r(r)r*r+r,r-r.r/r0r1r2r;)�__annotations__r3r4r5r6r7r8r9r:r;r<�__kwdefaults__r=r>r?�__objclass__r]r@rArBr<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)*rDr=�@\w+�@rCrGr6r7�(\s+)(as)(\s+)z\.�
(\s*)(,)(\s*)r9z(\s+)(import)\br8rRrOcCs
t|d�S)Nzpythonw?3(\.\d)?rYrZr+r+r,r\�szPython3Lexer.analyse_textN)/r?r=r]r9rCr^r_r`�re�	MULTILINE�UNICODE�flags�uniZ	xid_startZxid_continueZuni_namer-rru�copyrrZConstantrrfrgr�rhrirjrrkrlrmrnrorrrrsrr
rdrrrbrer\r+r+r+r,r�s�
�����	��
���'������
��
�
���c@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 ``False``.

        .. versionadded:: 1.0
    zPython console sessionZpyconztext/x-python-doctestcKs t|dd�|_tj|f|�dS)NrvF)rrvrr)�self�optionsr+r+r,r�szPythonConsoleLexer.__init__c	cs*|jr tf|j�}tf|j�}ntf|j�}tf|j�}d}g}d}d}d}t�|�D�]z}	|	��}
|
�	d�sx|
�	d�r�d}|�
t|�dtj
|
dd�fgf�||
dd�7}qV|
��dkr�|s�|�
t|�dtj
dfgf�||
dd�7}qV|�rt||�|��D]}|V�qd}g}|
�	d��s6t�d	|
��rHd
}|
}|	��}qV|
dk�rf|	��tj|
fVqV|�r�||
7}|
�	d��s�|
��dk�s�d}|�|�D]\}}
}|||
|fV�q�d}qV|	��tj|
fVqV|�r�t||�|��D]}|V�q�|�r&|�|�D]\}}
}|||
|fV�qdS)
N�rz>>> z... �z...�z"Traceback (most recent call last):z  File "[^"]+", line \d+\n$�zKeyboardInterrupt
� )rvrr�rrr�line_re�finditer�group�
startswith�appendr�rZPrompt�rstripr
�get_tokens_unprocessedr��match�startrrs�stripZOutput)r�r[ZpylexerZtblexerZcurcodeZ
insertionsZcurtbZtbindex�tbr��line�item�i�t�vr+r+r,r��sn
�
��

�

�
z)PythonConsoleLexer.get_tokens_unprocessedN)	r?r=r]r9rCr^r`rr�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	�fd
ee	ee	�fdee
je	e
e	�dfdee
je	�dfgd�ZdS)rz;
    For Python tracebacks.

    .. versionadded:: 0.7
    zPython TracebackZpytbz*.pytbztext/x-python-tracebackz^(\^C)?(Traceback.*\n)�intb�^(?=  File "[^"]+", line \d+)z^.*\n�0^(  File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)�%^(  File )("[^"]+")(, line )(\d+)(\n)�^(    )(.+)(\n)�^([ \t]*)(\.\.\.)(\n)�^([^:]+)(: )(.+)(\n)rG�^([a-zA-Z_]\w*)(:?\n)�rUr�N)r?r=r]r9rCr^r_r`rr
r�	Tracebackrrrfrrrrrrur+r+r+r,r�sD
�
�
���
��
���c@s�eZdZdZdZdgZdgZdgZdefde	j
dfd	e	j
fd
e	j
fde	j
dfgdeeej
eeeee�fd
eeej
eee�fdeeee�e�fdeeee�fdee	jeee�dfdee	je�dfgd�ZdS)rzd
    For Python 3.0 tracebacks, with support for chained exceptions.

    .. versionadded:: 1.0
    zPython 3.0 TracebackZpy3tbz*.py3tbztext/x-python3-tracebackr.z'^Traceback \(most recent call last\):\nr�zH^During handling of the above exception, another exception occurred:\n\nzI^The above exception was the direct cause of the following exception:\n\nr�r�r�r�r�r�rGr�r�N)r?r=r]r9rCr^r_r`r
rr�rrrfrrrrrrur+r+r+r,rsJ
��
�
���
��
���c!@sLeZdZdZdZdddgZdddgZd	d
gZdefde	ee
j�fd
e	ee
j�fdefdefde
fdefdefdejfde	e
eje
�fdefde	eejeeeee
�fed�de	ee�dfde	ee�dfde	ee
�fde	ee�dfde	ee�d fd!e	ee�d"fed#�ed$�d%e
d&fd'e
d(fd)e
d*fd+e
d,fd-e
ed.d&�fd/e
ed.d(�fd0e
ed.d*�fd1e
ed.d,�fed2�ed3�ged4d5d6�efd7ejfged8d9d5d:�ejfd;ejjfed<d9d5d:�ejfgd=ejfd>ejfd?ejfd@ejjfdAejfgdBe
j fgdCej!fdDefgdDej"dEfgdFej#fdGefdHe	ej"e�dEfdIe	ej"ee
�fdJedEfdKefdLe
dEfdMedEfdDejfdNefg
dDej$dEfgdOe	eee�fdPej%fdQe	eee�fe&dE�gdRe	ee�dEfdSej%fe&dE�gdTe
j'fgdUe
j(fdVe
fdWe
fdXe
fgde
fgdYe
dEfdZe
j'fed[�gd\e
dEfd]e
j'fed[�gd^e
dEfed[�ed_�gd`e
dEfed[�ed_�gda�Z)dbS)crz]
    For Pyrex and `Cython <http://cython.org>`_ source code.

    .. versionadded:: 1.1
    ZCythonZcythonZpyxZpyrexz*.pyxz*.pxdz*.pxiz
text/x-cythonzapplication/x-cythonr.z^(\s*)("""(?:.|\n)*?""")z^(\s*)('''(?:.|\n)*?''')r/r0r1r2r3r4z(<)([a-zA-Z0-9.?]+)(>)z!=|==|<<|>>|[-~+/*%=<>&^|.?]z(from)(\d+)(<=)(\s+)(<)(\d+)(:)r5z(def|property)(\s+)r6z
(cp?def)(\s+)�cdefz	(cdef)(:)z(class|struct)(\s+)r7z(from)(\s+)r8z(c?import)(\s+)r9r:r=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])'rAz[uU]?"""rBz[uU]?'''z[uU]?"z[uU]?'rCrD)rErFZbyrGZctypedefrHrIrJrKzexcept?rLrMrNZfusedZgilrOrPrrQZnogilrRrSrTrUrVrWrXrZr[r\r]z(DEF|IF|ELIF|ELSE)\b)Or_r`rarbrcrdrerfrgrhrirjrkrlrmrnrorprqrrrsrtrurvrwrxryrzr{r|r}r~rr�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�Zunsignedr�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�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�z&(\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?z0\d+rCrDz\d+rEr�rFrGz%(public|readonly|extern|api|inline)\bz(struct|enum|union|class)\bz([a-zA-Z_]\w*)(\s*)(?=[(:#=]|$)z([a-zA-Z_]\w*)(\s*)(,)zfrom\brH�:z	(?=["\'])�.r�rJr�z(\s+)(c?import)\brKrLzP%(\([a-zA-Z0-9]+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]r%r&r'rMrN�stringsrPrQrS�nlrT)rUr5r:rDr=rCr6r�r7r9r8rBr�r�r@rAr>r?N)*r?r=r]r9rCr^r_r`r
rrrarrrrcr�Typerrorrr	rZPreprocrfrgr�rkrlrnrprqrrrh�Reservedrsrdrrtr)rur+r+r+r,r:s

����&���
�
�����#
���
�
���
��������������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)5rz�
    Lexer for `dg <http://pyos.github.com/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?)'''rBr?�stringz(?i)(br|r?b?)"""r>z(?i)(br|r?b?)'rAz(?i)(br|r?b?)"r@z`\w+'*`z\b(and|in|is|or|where)\bz[!$%&*+\-./:<-@\\^|~;,]+)rfrhrirlrprrzdict'r{r|r�r�zlist'r~r�r�r�r�zset'r�r�r�r�r�ztuple'r�r�z
(?![\'\w])r�)=r_r`rarbreZbindrkrmrorprqrsrtZdrop�	dropwhilerurvZexhaustrzZflipzfoldl1?r}Zfstr}r~rr��headr�r�Zinitr�r�r�r�ZiterateZlastr�r�r�r�r�r�r�r�r�r�rSr�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�rLr$r%r&r'r.rMrGrPrSrT)rUrBr�r@rAr>r?N)"r?r=r]r9rCr^r_r`r
rrbrrmrlrnrkrorr	rrcrrrfrgr�rr�r�rrrtr)rur+r+r+r,r�s���	�
������9���������c@s:eZdZdZdZdgZgZgZed�Z	dd�Z
dd�Zd	S)
r z[
    A Python lexer recognizing Numerical Python builtins.

    .. versionadded:: 0.10
    ZNumPyZnumpy(�r`Zabsolute�
accumulate�addZalenraZallcloseZalltrueZalterdotZamaxZaminZanglerbr�Zapply_along_axisZapply_over_axesZarangeZarccosZarccoshZarcsinZarcsinhZarctanZarctan2ZarctanhZargmaxZargminZargsortZargwhereZaroundZarrayZarray2stringZarray_equalZarray_equivZ
array_reprZarray_splitZ	array_strZ
arrayrangeZ
asanyarrayZasarrayZasarray_chkfiniteZascontiguousarrayZasfarrayZasfortranarrayZasmatrixZasscalarZastypeZ
atleast_1dZ
atleast_2dZ
atleast_3dZaverageZbartlettZ	base_reprZbetaZbinary_reprZbincountZbinomialZbitwise_andZbitwise_notZ
bitwise_orZbitwise_xorZblackmanZbmatZ	broadcastZbyte_boundsriZbyteswapZc_Zcan_castZceilZchooseZclipZcolumn_stackZcommon_typeZcompare_chararrays�compressZconcatenateZconj�	conjugateZconvolver�ZcorrcoefZ	correlateZcosZcoshZcovZcrossZcumprodZ
cumproductZcumsum�deleteZ	deprecateZdiagZdiagflatZdiagonalZdiffZdigitizeZdispZdivide�dotZdsplitZdstackZdtype�dump�dumpsZediff1d�emptyZ
empty_likeZequalZexpZexpand_dimsZexpm1�extractZeyeZfabsZfastCopyAndTransposeZfftZfftfreqZfftshiftZfillZfinfoZfixZflatZflatnonzeroZflattenZfliplrZflipudZfloorZfloor_divideZfmodZfrexpZ
fromarraysZ
frombufferZfromfileZfromfunctionZfromiterZ
frompyfuncZ
fromstringZgenericZget_array_wrapZget_includeZget_numarray_includeZget_numpy_includeZget_printoptions�	getbufferZ
getbufsizeZgeterrZ
geterrcallZ	geterrobjZgetfieldZgradientZgreaterZ
greater_equalZgumbelZhammingZhanningZ	histogramZhistogram2dZhistogramddZhsplitZhstackZhypotZi0ZidentityZifft�imagZ	index_exp�indices�inf�info�inner�insertZint_asbufferZinterpZintersect1dZintersect1d_nu�inv�invertZ	iscomplexZiscomplexobjZisfiniteZ	isfortranZisinfZisnanZisneginfZisposinfZisrealZ	isrealobjZisscalarZissctypeZissubclass_Z
issubdtypeZissubsctyper�Zitemset�iterableZix_ZkaiserZkronZldexpZ
left_shiftZlessZ
less_equalZlexsortZlinspace�load�loadsZloadtxt�logZlog10Zlog1pZlog2Zlogical_andZlogical_notZ
logical_orZlogical_xorZlogspaceZlstsqZmatZmatrixr�ZmaximumZmaximum_sctypeZmay_share_memoryZmeanZmedianZmeshgridZmgridr�ZminimumZmintypecode�modZmodfZmsortZmultiply�nanZ
nan_to_numZ	nanargmaxZ	nanargminZnanmaxZnanminZnansumZndenumerate�ndimZndindex�negativeZnewaxisZ	newbufferZnewbyteorderZnonzeroZ	not_equalZ
obj2sctypeZogridZonesZ	ones_likeZouterZpermutationZ	piecewiseZpinvZpkgloadZplaceZpoissonZpolyZpoly1dZpolyaddZpolyderZpolydivZpolyfitZpolyintZpolymulZpolysubZpolyvalZpowerZprod�productZptpZputZputmaskZr_ZrandintZrandom_integersZ
random_sampleZranfZrankZravel�realZ
real_if_closeZrecarrayZ
reciprocalr�Z	remainder�repeatZrequireZreshapeZresizeZ
restoredotZright_shiftZrintZrollZrollaxis�rootsZrot90r�Zround_Z	row_stackZs_ZsampleZsavetxtZsctype2charZsearchsortedZseedZselectZset_numeric_opsZset_printoptionsZset_string_functionZ
setbufsizeZ	setdiff1dZseterrZ
seterrcallZ	seterrobjZsetfieldZsetflagsZsetmember1dZsetxor1d�shapeZshow_configZshuffleZsignZsignbitZsinZsincZsinh�sizer�ZsolveZsometrue�sortZsort_complex�source�splitZsqrtZsquareZsqueezeZstandard_normalZstd�subtractr�ZsvdZswapaxesr�ZtanZtanhZ	tensordotZtestZtileZtofile�tolistZtostringZtraceZ	transposeZtrapzZtriZtrilZ
trim_zerosZtriuZtrue_divideZtypeDict�typenameZuniformZunion1d�uniqueZunique1dZ
unravel_indexZunwrapZvander�varZvdotZ	vectorizeZviewZvonmisesZvsplitZvstackZweibull�whereZwhoZzerosZ
zeros_likeccsJt�||�D]8\}}}|tkr8||jkr8|tj|fVq|||fVqdS)N)rr�r�EXTRA_KEYWORDSrrg)r�r[�index�token�valuer+r+r,r��s

�z!NumPyLexer.get_tokens_unprocessedcCs*t|d�sd|dd�ko(d|kp(d|kS)NrVrWrXzimport numpyzfrom numpy importrYrZr+r+r,r\�s

��zNumPyLexer.analyse_textN)r?r=r]r9rCr^r`r_r�rr�r\r+r+r+r,r PsC))r9r�Zpygments.lexerrrrrrrrr	r
Z
pygments.utilrrZpygments.tokenr
rrrrrrrrrrZpygmentsrr��__all__ror�rrrrrrrr r+r+r+r,�<module>s0
,4�
Z X''4c