HOME


Mini Shell 1.0
DIR: /usr/lib/python3/dist-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/urbi.cpython-312.pyc
�

|�e���d�dZddlZddlmZmZddlmZmZmZm	Z	m
Z
mZmZm
Z
dgZGd�de�Zy)z�
    pygments.lexers.urbi
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for UrbiScript language.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�ExtendedRegexLexer�words)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�UrbiscriptLexerc��eZdZdZdZdgZdgZdgZejZ
d�Zdefde
fd	e
jd
fdefedd
��efedd
��ej"fdefdefdej$fdej&fedd
��ej*fdej*j,fdefdej0fdefdefdej4fdej8fdej:fdej>dfdej@d fgd!efd"ej>d#fgd$efd%ej@d#fgd&e
jfd	e
jd'fd(e
jd#fd)e
jfgd*�Z!d+�Z"y,)-r
z@
    For UrbiScript source code.

    .. versionadded:: 1.5
    �
UrbiScript�
urbiscriptz*.uzapplication/x-urbiscriptc#�K�|jd�}|jd�}|jd�}t|�}|j�t|f��|xjt|�z
c_|j|j�|zdk7r@d|zdz}|j�t|f��|xjt|�z
c_y||j|j�|j�|zzdz}|j�tj|f��|j�|zdz|_y�w)N����)z\B(z)()	�group�int�startr
�pos�len�text�end�Escape)	�lexer�match�ctx�text_before_blob�
blob_start�
blob_size_str�	blob_size�result�	blob_texts	         �6/usr/lib/python3/dist-packages/pygments/lexers/urbi.py�
blob_callbackzUrbiscriptLexer.blob_callback&s���� �;�;�q�>���[�[��^�
����A��
��
�&�	��k�k�m�V�%5�5�5����3�'�(�(���8�8�E�I�I�K�)�+�,��3��m�+�d�2�F��+�+�-���/�/��G�G�s�6�{�"�G������%�)�)�+�e�i�i�k�)�6K�!L�L�s�R�	��k�k�m�V�]�]�I�5�5��)�)�+�	�)�A�-���s�EEz\s+z//.*?\nz/\*�commentz"(every|for|loop|while)(?:;|&|\||,))�assert�at�break�case�catch�closure�compl�continue�default�else�enum�every�external�finally�for�freezeif�if�new�onleave�return�stopif�switch�this�throw�timeout�try�	waituntil�whenever�whilez\b)�suffix)$�asm�auto�bool�char�
const_cast�delete�double�dynamic_cast�explicit�export�extern�float�friend�goto�inliner�long�mutable�	namespace�register�reinterpret_cast�short�signed�sizeof�static_cast�struct�template�typedef�typeid�typename�union�unsigned�using�virtual�volatile�wchar_tz&(emit|foreach|internal|loopn|static)\bz(private|protected|public)\bz(var|do|const|function|class)\bz(true|false|nil|void)\b)E�Barrier�Binary�Boolean�CallMessage�Channel�Code�
Comparable�	Container�Control�Date�
Dictionary�	Directory�Duration�Enumeration�Event�	Exception�
Executable�File�Finalizable�Float�
FormatInfo�	Formatter�Global�Group�Hash�InputStream�	IoService�Job�Kernel�Lazy�List�Loadable�Lobby�Location�Logger�Math�Mutex�nil�Object�	Orderable�OutputStream�Pair�Path�Pattern�Position�	Primitive�Process�Profile�
PseudoLazy�PubSub�
RangeIterable�Regexp�	Semaphore�Server�	Singleton�Socket�
StackFrame�Streamr
�System�Tag�Timeout�	Traceable�TrajectoryGenerator�Triplet�Tuple�UObject�UValue�UVarz
(?:this)\bz(?:[-=+*%/<>~^:]+|\.&?|\|\||&&)z?(?:and_eq|and|bitand|bitor|in|not|not_eq|or_eq|or|xor_eq|xor)\bz[{}\[\]()]+z(?:;|\||,|&|\?|!)+z
[$a-zA-Z_]\w*z0x[0-9a-fA-F]+zV(?:[0-9]+(?:(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)?((?:rad|deg|grad)|(?:ms|s|min|h|d))?)\b�"�
string.double�'�
string.singlez%((?:\\\\|\\"|[^"])*?)(\\B\((\d+)\)\()z(\\\\|\\[^\\]|[^"\\])*?"z#popz%((?:\\\\|\\'|[^'])*?)(\\B\((\d+)\)\()z(\\\\|\\[^\\]|[^'\\])*?'z[^*/]z#pushz\*/z[*/])�rootr�r�r)c�.�d}d|vr|dz
}d|vr|dz
}|S)z_This is fairly similar to C and others, but freezeif and
        waituntil are unique keywords.rr9g�������?rD�)rr%s  r'�analyse_textzUrbiscriptLexer.analyse_text�s0��������d�N�F��$���d�N�F��
�N)#�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�re�DOTALL�flagsr(rr�	Multilinerr�Reserved�Declaration�Constantr	�Builtin�Pseudor�Wordr�Otherr�Hexr~r
�Double�Single�tokensr�r�r�r'r
r
s����D��n�G���I�+�,�I��I�I�E�.�.�T�N�
��!�
�W�&�&�	�2�
2�G�<�
�2�
;@�A��

��G�PU�
V��
�
�
�7��@�
,�g�6�
/��1D�1D�E�
'��)9�)9�:�
�"�+0�1��\�\�

��D�L�L�/�/�0�
/��:�
O�
�]�]�
�
�[�)�
"�K�0�
�t�z�z�*�
��
�
�+�8�9?���
G��6�=�=�/�2�
�6�=�=�/�2�o8
�t6�}�E�
(�&�-�-��@�
�
6�}�E�
(�&�-�-��@�
��w�(�(�)�
�W�&�&��0�
�W�&�&��/�
�g�'�'�(�	
�GI�F�Vr�)r�r��pygments.lexerrr�pygments.tokenrrrrr	r
rr�__all__r
r�r�r'�<module>r�s:���
�4�����
��}�(�}r�