HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pygments/lexers/__pycache__/textedit.cpython-311.pyc
�

�E�c�����dZddlZddlmZddlmZmZmZmZmZm	Z	ddl
mZddlm
Z
mZmZmZmZmZmZmZmZgd�ZGd�d	e��ZGd
�de��ZGd�d
e��ZdS)z�
    pygments.lexers.textedit
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for languages related to text processing.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�bisect)�
RegexLexer�bygroups�default�include�this�using)�PythonLexer)	�Comment�Keyword�Name�Number�Operator�Punctuation�String�Text�
Whitespace)�AwkLexer�SedLexer�VimLexerc�d�eZdZdZdZgd�ZdgZdgZdefde	j
fged��d	ej
d
fdedfed
��gd
ed
fgdedfed��dedfdedfdefdedfdejdfdejfdejfdejfdejfdejfdejfdejfdej
fgd�ZdS)rz5
    For Awk scripts.

    .. versionadded:: 1.5
    �Awk)�awk�gawk�mawk�nawkz*.awkzapplication/x-awk�\s+�#.*$�commentsandwhitespacez(/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/\B�#popz(?=/))r �badregexz\nz	^(?=\s|/)�slashstartsregexz3\+\+|--|\|\||&&|in\b|\$|!?~|(\*\*|[-<>+*%\^/!=|])=?z[{(\[;,]z[})\].]z3(break|continue|do|while|exit|for|if|else|return)\bz
function\bz�(atan2|cos|exp|int|log|rand|sin|sqrt|srand|gensub|gsub|index|length|match|split|sprintf|sub|substr|tolower|toupper|close|fflush|getline|next|nextfile|print|printf|strftime|systime|delete|system)\bz�(ARGC|ARGIND|ARGV|BEGIN|CONVFMT|ENVIRON|END|ERRNO|FIELDWIDTHS|FILENAME|FNR|FS|IGNORECASE|NF|NR|OFMT|OFS|ORFS|RLENGTH|RS|RSTART|RT|SUBSEP)\bz
[$a-zA-Z_]\w*z%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?z0x[0-9a-fA-F]+�[0-9]+z"(\\\\|\\[^\\]|[^"\\])*"z'(\\\\|\\[^\\]|[^'\\])*')rr"r!�rootN)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypesrr�Singlerr�Regexrrrr�Declaration�Reservedr
�Builtin�Otherr�Float�Hex�Integer�Double�tokens���:/usr/lib/python3/dist-packages/pygments/lexers/textedit.pyrrsk���������D�-�-�-�G��	�I�$�%�I��T�N�
�g�n�%�"
�

�G�+�,�,���L�&�
*�
�t�1�2��G�F�O�O�
��D�&�!�
��4�!3�4��G�+�,�,�(�)1�3E�
G�
�+�'9�:�
��%��"�$6�
8�
�G�/�1C�D�!�#*�"2�
4�$�%)�\�
3��t�z�*�
5�v�|�D�
��
�+�
���'�
(�&�-�8�
(�&�-�8�-
�'�'�F�F�Fr9rc���eZdZdZdZgd�ZddgZdgZej	Z
dZdd	efd
e
jfdejfdefd
efdefdeeej��fdeeej��fdeeej��fdezdzeeeje��fdezdzeedeje��fdezdzezdzeeeejeeje��fdezdzezdzeeeejeejee��fg
iZdS)rz%
    Lexer for Sed script files.
    �Sed)�sed�gsed�ssedz*.sedz	*.[gs]sedz
text/x-sedz.((?:(?:\\[^\n]|[^\\])*?\\\n)*?(?:\\.|[^\\])*?)r$rrr#z\$z[{};,!]z[dDFgGhHlnNpPqQxz=]z([berRtTvwW:])([^;\n]*)z"([aci])((?:.*?\\\n)*(?:.*?[^\\]$))z([qQ])([0-9]*)z(/)z(\\(.))z(\2)Nz(y)(.)z(s)(.)z(\2)((?:[gpeIiMm]|[0-9])*))r%r&r'r(r)r*r+r,�re�	MULTILINE�flags�_inside_delimsrrr-rr5rrrrrr6r.r7r8r9r:rrLs����������D�%�%�%�G��+�&�I���I��L�E�G�N�	�
�Z� �
�g�n�%�
���'�
�H��
��%�
#�W�-�
'���'�6�=�)I�)I�J�
2�H�H�W�f�m�4T�4T�U�
����&�.� A� A�B�
�n�
$�v�
-�x�x��V�\�S^�/_�/_�`�
�.�
(�7�
2�
�X�k�4���{�
C�
C�
E�
��
'�'�
1�N�
B�W�
L�
�X�g�{�F�M�;��
�Wb�
c�
c�
e�
��
'�'�
1�N�
B�Eb�
b�
�X�g�{�F�L�+�v�}�Va����
 �
��F�F�Fr9rc��eZdZdZdZdgZgd�ZdgZej	Z
dZddezd	zee
e��eeeeee
e��e��fdezd
zee
e��eee
e����fdefdefd
ejfdejfdejfdefdefdejfdefdefdefdejfdejfdefgiZd�Zd�Z d�Z!dS)rzA
    Lexer for VimL script files.

    .. versionadded:: 0.8
    �VimL�vim)	z*.vimz.vimrcz.exrcz.gvimrc�_vimrc�_exrc�_gvimrc�vimrc�gvimrcz
text/x-vimzpy(?:t(?:h(?:o(?:n)?)?)?)?r$z^([ \t:]*)(z()([ \t]*)(<<)([ \t]*)(.*)((?:\n|.)*)(\6)z)([ \t])(.*)z^\s*".*z[ \t]+z!/[^/\\\n]*(?:\\[\s\S][^/\\\n]*)*/z!"[^"\\\n]*(?:\\[\s\S][^"\\\n]*)*"z'[^\n']*(?:''[^\n']*)*'z(?<=\s)"[^\-:.%#=*].*z-?\d+z#[0-9a-f]{6}z^:z
[()<>+=!|,~-]z7\b(let|if|else|endif|elseif|fun|function|endfunction)\bz+\b(NONE|bold|italic|underline|dark|light)\bz\b\w+\b�.c�h�ddlm}m}m}||_||_||_tj|fi|��dS)Nr)�auto�command�option)	�pygments.lexers._vim_builtinsrNrOrP�_cmd�_opt�_autr�__init__)�self�optionsrNrOrPs     r:rUzVimLexer.__init__�sT��G�G�G�G�G�G�G�G�G�G���	���	���	���D�,�,�G�,�,�,�,�,r9c���t||f��}|dkre||dz
d|dt||dz
d���kr,||dz
ddt|���|krdS|t|��krZ||d|dt||d���ko&||ddt|���|kSdS)a
        It's kind of difficult to decide if something might be a keyword
        in VimL because it allows you to abbreviate them.  In fact,
        'ab[breviate]' is a good example.  :ab, :abbre, or :abbreviate are
        valid ways to call it so rather than making really awful regexps
        like::

            \bab(?:b(?:r(?:e(?:v(?:i(?:a(?:t(?:e)?)?)?)?)?)?)?)?\b

        we match `\b\w+\b` and then call is_in() on those tokens.  See
        `scripts/get_vimkw.py` for how the lists are extracted.
        r�NTF)r�len)rV�w�mapping�ps    r:�is_inzVimLexer.is_in�s���
�7�Q�D�!�!���q�5�5��q��s�|�A��!�$9�S���1���a��%9�%9�$9�":�:�:��q��s�|�A��w��A���w�'�1�,�,��t��s�7�|�|����1�:�a�=�A�&9�s�7�1�:�a�=�'9�'9�&9�$:�:�,���
�1�
�g�s�1�v�v�g�&�!�+�
,��ur9c#�fK�tj||��D]�\}}}|tjur}|�||j��r
|t|fV��<|�||j��s|�||j��r|tj	|fV���|t|fV���|||fV���dS)N)r�get_tokens_unprocessedr
r2r^rRrrSrTr1r)rV�text�index�token�values     r:r`zVimLexer.get_tokens_unprocessed�s�����
�1�$��=�=�	*�	*��E�5�%���
�"�"��:�:�e�T�Y�/�/�-���%�/�/�/�/�/��Z�Z��t�y�1�1�-��
�
�5�$�)�4�4�-����u�4�4�4�4�4���u�,�,�,�,�,��U�E�)�)�)�)�)�	*�	*r9N)"r%r&r'r(r)r*r+r,r@rArB�_pythonrr	rrrrr
rrr.r6r-rr4rr
r1r2r7rUr^r`r8r9r:rros���������
�D��g�G�B�B�B�I���I��L�E�+�G�	�
�g�
%�(S�
S�
�X�e�e�D�k�k�7�D�(�D�$��e�K�(�(�$�0�0�
1��g�
%��
7�
�X�e�e�D�k�k�7�D�%�%��2D�2D�
E�
E�
G���!�
���
1�6�<�@�
1�6�=�A�
'���7�&�w�/�
�v��
�f�j�)�
�K� �
�{�+�
G�
�
�
;�T�\�J�
���$�
�4�L�3
��F�<-�-�-����.*�*�*�*�*r9r)r(r@r�pygments.lexerrrrrrr	�pygments.lexers.pythonr
�pygments.tokenrrr
rrrrrr�__all__rrrr8r9r:�<module>rjs}����
�	�	�	�������N�N�N�N�N�N�N�N�N�N�N�N�N�N�N�N�.�.�.�.�.�.�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�/�
.�
.��3�3�3�3�3�z�3�3�3�l!�!�!�!�!�z�!�!�!�F[*�[*�[*�[*�[*�z�[*�[*�[*�[*�[*r9