HEX
Server: LiteSpeed
System: Linux br-asc-web1845.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
User: u790421558 (790421558)
PHP: 8.2.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/__pycache__/shell.cpython-311.pyc
�

Y�Zg������dZddlZddlmZmZmZmZmZmZm	Z	m
Z
mZmZddl
mZmZmZmZmZmZmZmZmZmZddlmZgd�ZGd�de��ZGd	�d
e��ZGd�de��ZGd
�de��ZGd�de��ZGd�de��Z Gd�de��Z!Gd�de��Z"Gd�de��Z#Gd�de��Z$Gd�de��Z%Gd�de��Z&dS)z�
    pygments.lexers.shell
    ~~~~~~~~~~~~~~~~~~~~~

    Lexers for various shells.

    :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)
�Lexer�
RegexLexer�
do_insertions�bygroups�include�default�this�using�words�line_re)
�Punctuation�
Whitespace�Text�Comment�Operator�Keyword�Name�String�Number�Generic��shebang_matches)�	BashLexer�BashSessionLexer�	TcshLexer�
BatchLexer�SlurmBashLexer�MSDOSSessionLexer�PowerShellLexer�PowerShellSessionLexer�TcshSessionLexer�FishShellLexer�
ExeclineLexerc��eZdZdZdZgd�Zgd�Zgd�ZdZdZ	e
d��d	ejd
fe
d��e
d��gd
e
dfde
dfdejdfdejfdejfdefgdee
e��fdejfdejfdejfdejfdeejee��fdefdefdefdefg
d ejfd!ejd"fd#ejfd$ejfd%efd&efd'efd(efd)efd*efd+efgd!ejd,fd-ejfe
d��gd.ejd,fd/e
fd0ejfd1efd2efe
d3��gd4e
d,fe
d3��gd5e
d,fd6efd7efd8efd9efd:efd;ejfe
d3��gd	ejd,fe
d3��gd<�	Zd=�Zd>S)?rz.
    Lexer for (ba|k|z|)sh shell scripts.
    �Bash)�bash�sh�ksh�zsh�shell�openrc)z*.shz*.kshz*.bashz*.ebuildz*.eclassz*.exheres-0z*.exlibz*.zshz.bashrc�bashrcz.bash_*zbash_*�zshrcz.zshrcz.kshrc�kshrc�PKGBUILD)zapplication/x-shzapplication/x-shellscriptztext/x-shellscript�(https://en.wikipedia.org/wiki/Unix_shellz0.6�basic�`�	backticks�data�interp�\$\(\(�math�\$\(�paren�\$\{#?�curlyz\$[a-zA-Z_]\w*z\$(?:\d+|[#$?!_*@-])�\$zj\b(if|fi|else|while|in|do|done|for|then|return|function|case|select|break|continue|until|esac|elif)(\s*)\baG\b(alias|bg|bind|builtin|caller|cd|command|compgen|complete|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|popd|printf|pushd|pwd|read|readonly|set|shift|shopt|source|suspend|test|time|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)(?=[\s)`])�\A#!.+\n�#.*\n�\\[\w\W]z(\b\w+)(\s*)(\+?=)z[\[\]{}()=]z<<<�<<-?\s*(\'?)\\?(\w+)[\w\W]+?\2z&&|\|\|z(?s)\$?"(\\.|[^"\\$])*"�"�string�#(?s)\$'(\\\\|\\[0-7]+|\\.|[^'\\])*'�	(?s)'.*?'�;�&z\|�\s+z\d+\b�[^=\s\[\]{}()$"\'`\\<&|;]+�<�#pop� (?s)(\\\\|\\[0-7]+|\\.|[^"\\$])+�\}�:-�\w+z
[^}:"\'`$\\]+�:�root�\)�\)\)z\*\*|\|\||<<|>>|[-+*/%^|&<>]z\d+#[\da-zA-Z]+�	\d+#(?! )z0[xX][\da-fA-F]+�\d+z[a-zA-Z_]\w*)	rPr5r1r4rBr;r9r7r3c�X�t|d��rdS|�d��rdSdS)Nz	(ba|z|)sh�z$ g�������?)r�
startswith��texts �H/opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/shell.py�analyse_textzBashLexer.analyse_textzs<���4��.�.�	��1��?�?�4� � �	��3�	�	�N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�url�
version_addedrr�Backtickr�Interpolr�Variablerrr�Builtinr�Hashbang�Single�Escaper�Doubler
r�tokensr[�r\rZrrs����������D�=�=�=�G����I�
X�W�W�I�
4�C��M�
�G�G���
�6�?�K�0��G�F�O�O��G�H���	
����(�
�g�w�'�
����1�
��
�.�
$�d�m�4�
�D�M�

�>�
�X�g�z�
*�
*�
,�;��\�

��'�*�+�
�w�~�&�
�&�-�(�
"�H�H�T�]�J��$Q�$Q�R�
�X�&�
�X��
.��7�
��"�%
�*(���7�
�6�=�(�+�
3�V�]�C�
�6�=�)�
�;��
�;��
�K� �
�Z� �
�v��
*�D�1�
�4�L�
��6�=�&�)�
0�&�-�@��G�H���
��F�O�V�,�
�G��
�T�]�#�
�{�+�
�;���G�F�O�O�

��G�V�$��G�F�O�O�
�
�g�v�&�
,�h�7�
��(�
�6�"�
 �&�)�
�V��
�d�m�,��G�F�O�O�	
��6�?�F�+��G�F�O�O�
�WO�O�F�b����r\rc�8�eZdZdZdZddgZdgZgZdZdhZ	d�Z
d	S)
rz.
    Lexer for (ba|k|z|)sh Slurm scripts.
    �Slurm�slurm�sbatchz*.slz2.4�srunc#��K�t�||��D]U\}}}|tur||jvr|tj|fV��*|tjurd|vr|tj	|fV��N|||fV��VdS)N�SBATCH)
r�get_tokens_unprocessedr�EXTRA_KEYWORDSrrjrrlr�Pseudo)�selfrY�index�token�values     rZrxz%SlurmBashLexer.get_tokens_unprocessed�s�����#,�#C�#C�D�$�#O�#O�	*�	*��E�5�%���}�}��$�*=�!=�!=��T�\�5�0�0�0�0�0��'�.�(�(�X��->�->��W�^�U�2�2�2�2�2��U�E�)�)�)�)�)�
	*�	*r\N)r]r^r_r`rarbrcrdrfryrxrpr\rZrr�sV���������D���!�G���I��I��M��X�N�*�*�*�*�*r\rc�<�eZdZdZdZejd��Zd�ZdS)�ShellSessionBaseLexerzC
    Base lexer for shell sessions.

    .. versionadded:: 2.1
    Fz^(\([^)]*\))(\s*)c#�K�|jdi|j��}d}d}g}d}tj|��D�]}|���}|j�|��}	|	r�|	�d��}
|	�d��}|�t|��dtj
j|
fgf��|r-|�t|��dt|fgf��||	�
��d�}|j�|��}|r�|s|���}|�t|��dtj
|�d��fgf��||�d��z
}|�d��}���|r�|�|j��rl|�t|��dtj
|dt|j���fgf��||t|j��d�z
}n||z
}|�d��}��)|jr�|�|j��rm|�t|��dtj
|dt|j���fgf��||t|j��d�z
}���|r6|�|��}
t+||
��D]\}}}||z||fV��|���tj|fV�g}d}��|r4t+||�|����D]\}}}||z||fV��dSdS)Nr�FrV�z\
rp)�_innerLexerCls�optionsr�finditer�group�_venv�match�append�lenr�Prompt�
VirtualEnvr�end�_ps1rgx�start�endswithrW�_ps2�_bare_continuationrxr�Output)r{rY�
innerlexer�pos�curcode�
insertions�backslash_continuationr��line�
venv_match�venv�venv_whitespace�m�toks�i�t�vs                 rZrxz,ShellSessionBaseLexer.get_tokens_unprocessed�s�����(�T�(�8�8�4�<�8�8�
������
�!&���%�d�+�+�/	�/	�E��;�;�=�=�D���)�)�$�/�/�J��
/�!�'�'��*�*��",�"2�"2�1�"5�"5���!�!�3�w�<�<�%&���(A�4�$H�#I�#K�L�L�L�"�F��%�%�s�7�|�|�)*�D�/�(B�'C�'E�F�F�F��J�N�N�,�,�-�-�.����"�"�4�(�(�A�� 
�"�(��+�+�-�-�C��!�!�3�w�<�<�%&�������
�
�$C�#D�#F�G�G�G��1�7�7�1�:�:�%��)0�)9�)9�&�)A�)A�&�&�'�
��?�?�4�9�-�-�$��%�%�s�7�|�|�)*�G�N�)-�o�s�4�9�~�~�o�)>�)@�(A�'B�C�C�C��t�C��	�N�N�O�O�4�4�G�G��t�O�G�)0�)9�)9�&�)A�)A�&�&��(�
�T�_�_�T�Y�-G�-G�
��!�!�3�w�<�<�%&���%)�/�3�t�y�>�>�/�%:�%<�$=�#>�?�?�?��4��D�I�����0�0����*�%�<�<�W�E�E�D�#0��T�#B�#B�*�*���1�a�!�!�e�Q��k�)�)�)�)��k�k�m�m�W�^�T�9�9�9�9��
�����	"�(��)3�)J�)J�7�)S�)S�U�U�
"�
"���1�a��!�e�Q��k�!�!�!�!�	"�	"�
"�
"r\N)	r]r^r_r`r��re�compiler�rxrpr\rZr�r��sG�����������B�J�+�,�,�E�;"�;"�;"�;"�;"r\r�c�^�eZdZdZdZddgZddgZddgZd	Zd
Z	e
Zej
d��ZdZd
S)rzn
    Lexer for Bash shell sessions, i.e. command lines, including a
    prompt, interspersed with output.
    zBash Session�consolez
shell-sessionz*.sh-sessionz*.shell-sessionzapplication/x-shell-sessionzapplication/x-sh-sessionr0z1.1zk^((?:(?:\[.*?\])|(?:\(\S+\))?(?:| |sh\S*?|\w+\S+[@:]\S+(?:\s+\S+)?|\[\S+[@:][^\n]+\].+))\s*[$#%]\s*)(.*\n?)�> N)r]r^r_r`rarbrcrdrerfrr�r�r�r�r�rpr\rZrr�sm��������
�D��/�*�G��!2�3�I�.�0J�K�I�
4�C��M��N��b�j�	6�7�7�G��D�D�Dr\rc�	�eZdZdZdZgd�ZddgZdgZdZdZ	e
je
jzZ
d	Zd
ZdZdZd
e�de�d�Zde�de�de�e�d�Zde�de�e�d�Zde�d�Zde�e�de�d�Zde�e�de�d�Zde�d�Zd Zd!e�d"e�d#�Zd$e�d%e�d&e�d'e�d(e�d&e�d)e�d*e�d+e�d'e�d,e�d+e�d-�Zd
e�d.e�e�d�Zd
e�d.e�e�d/�Zd0e�d1e�d�Zd0e�d1e�d�Zd0e�d2e�d3e�d3e�d4�	Z eeeeeeeee eeefd5�Z!eeeeeeeefd6�Z"eeeeeefd7�Z#eefd8�Z$eeeeeefd9�Z%eeee eeeefd:�Z&id;e!d<���d=e"d<���d>e#d<���d?e$d<���d@e%d<���dAe&d<���dBe!dC���dDe"dC���dEe#dC���dFe$dC���dGe%dC���dHe&dC���dIee'j(fdJe�dK�e)j*fg�dLdMe)j+dNfee'j(fdOe)j*fdPe�dQ�e)j+fe,dN��g�dRe-dI��dSe)j.fg�dTe-dI��dSe)j/fg�dUdMe)j+dLfe-dI��dPe�e�dV�e0fg�dMe)j+dLfe-dI��dPe�dW�e'j(fgdXe�dYe�dZ�e1e2e3dU�[��e4e2e3dU�[��e5��dNfe-d=��gd\e5fdXe�d]e�d�e1e2e3dU�[��e4��dNfd^e�d_�e0fe-d=��gd`e�dae�db�e1e)j+e2e3dL�[��e0e5��fdMe)j+dcfdde�dee�db�e1e2e3dR�[��e0e5��fdfe�dge�db�e1e2e3dT�[��e0e5��fe-dh��gdie6j7fe-dh��gdje�dke�dl�e1e4e2e3dU�[��e6j7��dNfdme�dke�dke �d�e1e4e2e3dU�[��e2e3dn�[����dNfdoe�dke�e �d�e1e4e2e3dU�[����dNfdXe�e�dke�dke�e�d�	e1e2e3d>�[��e8j9e2e3d>�[����dNfe e2e3dU�[��dpfgdXe�dqe�dre �d�e1e2e3dU�[��e8e2e3dU�[����dNfdXe�dke�dke�e �d�e1e2e3dU�[��e8j9e2e3dU�[����dNfgee2e3dU�[��fdse5dtfe,dN��gee2e3dU�[��fdue��e4dNfe,dN��gdv�	�Z:dwS)xrz6
    Lexer for the DOS/Windows Batch file format.
    �	Batchfile)�batch�bat�dosbatch�winbatchz*.batz*.cmdzapplication/x-dos-batchz(https://en.wikipedia.org/wiki/Batch_filez0.7z\n\x1az&<>|z\t\v\f\r ,;=\xa0z
\s\x1a\xa0,;=z(?:(?:(?:\^[z])?[z])+)z	(?=(?:\^[z]?)?[z+./:[\\\]]|[z(])z(?=\^?[z]|[�])z((?:(?<=^[^:])|^[^:]?)[z]*)(:)�(?:(?:[^z+:^]|\^[�]?[\w\W])*)z	+:^)]|\^[�	]?[^)])*)z(?:-?(?:0[0-7]+|0x[\da-f]+|\d+)�)z(?:equ|geq|gtr|leq|lss|neq)z(?:"[^z"]*(?:"|(?=[z])))z-(?:(?:%(?:\*|(?:~[a-z]*(?:\$[^:]+:)?)?\d|[^%:z+]+(?::(?:~(?:-?\d+)?(?:,(?:-?\d+)?)?|(?:[^%z^]|\^[^%z])[^=z	]*=(?:[^%z])*)?)?%))|(?:\^?![^!:z+]+(?::(?:~(?:-?\d+)?(?:,(?:-?\d+)?)?|(?:[^!z^]|\^[^!z	]*=(?:[^!z
])*)?)?\^?!))z]?)?[^"z)])+)�(?:[z]+|�]+|(?:�|�)+)c
��d�|||||rdnd��}
d|�d|�d�}d|�d|�d�}d	|�d
�}d}|rd|�d�}d|
�d�}
d}|r
d
tdfnd|
�d|��tjfd|�d�td|��f|ttd���ftd|����d|�d�tfdtdfdtfd|�d|
�d|�d|r|n|�d|�d|�d �
ttttd�����d|��fd!|�d"|
�d#|�d|�d$|
�d�ttttd�����d|��ftd%|�&��td|��fd'|�d(�ttttd���t��d)|��fd)|��tfd*|
�d+|�d,|
�d�ttttd���t��d-fd*|
�d+|�d.|
�d�ttttd���t��d/fd0|
�d1�td2fd!|�d"|�d3�ttttd���t��d4|��fd5|
�d6|�d7|
�d8|�d9|
�d8|�d:�
ttttd���tttd���tttd�����d;fd<|
�d|�d|	�d=|�|r|n|�d�
tjd|��fd>|�d|�d?�ttttd���t��d@|��fdA�|||||||rdnd||�	�	ttttd���tttd���ttdB���t��d|��ftd|����gS)CNz(?:{}|{}|[^"%{}{}{}])*r�r�r�z^]|\^[r�z^)]|\^[r�z
((?:(?:\^[z]?)?[^\S\n])*)z
(?:(?=\))|�	/compoundrQrJz
\)((?=\()|z(?=�followrY��state�redirect�[�]+�\(�
root/compoundz@+z((?:for|if|rem)(?:(?=(?:\^[z"]?)?/)|(?:(?!\^)|(?<=m))(?:(?=\()|z)))(�?z?(?:\^[z]?)?/(?:\^[z]?)?\?)z(goto�)(z(?:\^[z]?)?\?)'�assoc�break�cd�chdir�cls�color�copy�date�del�dir�dpath�echo�endlocal�erase�exit�ftype�keys�md�mkdir�mklink�move�path�pause�popd�prompt�pushd�rd�ren�rename�rmdir�setlocal�shiftr��time�title�type�ver�verify�vol)�suffixz(call)(z?)(:)�callz(forz(?!\^))(z)(/f)�for/f�forz)(/l)�for/lr�r�z(?!\^))�for2r�z?)(:?)�labelz
(if(?:(?=\()|z	)(?!\^))(z?)((?:/iz)?)(z	?)((?:notz?))�(?�ifzrem(((?=\()|z?.*|z(setz(/a)�
arithmeticzY(set{}){}((?:/p)?){}((?:(?:(?:\^[{}]?)?[^"{}{}^={}]|\^[{}]?[^"=])+)?)((?:(?:\^[{}]?)?=)?)�variable)�formatr
rrlrr
r	rrrrr)�compound�_core_token�_core_token_compound�_keyword_terminator�_nl�_punct�_string�_space�_start_label�_stoken�_token_terminator�	_variable�_ws�rest�rest_of_line�rest_of_line_compound�	set_spacer�s                  rZ�_make_begin_statezBatchLexer._make_begin_states���(�.�.�w�	�3��3;�,C�C�C��E�E��>�3�>�>�c�>�>�>�� F�C� F� F�� F� F� F��5�#�5�5�5�	����	!�"F�0C�"F�"F�"F�� B�.?� B� B� B�� �F�-5��e�[�&�
)�
)�>�-�>�>��>�>��n��
#�L�
#�
#�
#�T�+<�F�+<�+<�=�
�U�4�v�.�.�.�/��'�v�'�'�(�(�
�#�\�\�\�4� �
�K��1�
�K� �Y�C�Y�Y�"3�Y�Y�9?�Y�Y�Zb�Bs�BV�BV�hs�Y�Y�|�Y�Y�MP�Y�Y�Y�
�g�u�T��8�8�8�
9�
9�
�f�
�
�
 �\�)�
[�
[�T�
[�
[��
[�
[��
[�
[�TX�
[�
[�
[�
�g�u�T��8�8�8�
9�
9�
�f�
�
�
 ��=�.�
/�/�/�18�9J�&�9J�9J�

L�&��
%�
%�
%�
�g�u�T��8�8�8�+�
F�
F�
�F�_�_�
�+�(�
*�
*�G�4�
P�&�
P�
P��
P�
P�<M�
P�
P�
P�
�g�u�T��8�8�8�'�
B�
B�
�
�Q�&�
P�
P��
P�
P�<M�
P�
P�
P�
�g�u�T��8�8�8�'�
B�
B�
�
�.�%�
-�
-�
-�w��H�
;�)�
;�
;�V�
;�
;�
;�
�g�u�T��8�8�8�+�
F�
F�
�V�
�
�
�T�/�T�T�&�T�T�J[�T�T�ag�T�T�sD�T�T�JP�T�T�T�
�g�u�T��8�8�8�'��D��/�/�/���D��/�/�/�1�1�2>�
@�S�.�S�S��S�S�'�S�S�GZ�S�u}�]P�\q�\q�DP�S�S�S�
�^�.�f�.�.�
0�
:�(�
:�
:�9�
:�
:�
:�
�g�u�T��8�8�8�'�
B�
B�
"�&�
"�
"�
$�6�6<�f�=P�R[�]f�hk�mp�rx��%�c�c�2�s�C�71�71�
�g�u�T��8�8�8�'��D��/�/�/��t�:�1N�1N�1N�!�#�#��f�
�
�

 �
�%�V�%�%�&�&�m7
�7	
r\c		�P�|rdnd}	g}
|r|
�dtdf��|
|�d|�d|r|n|�d�tttttjtj��ftd|	����d	|�d
�tdfdtdftd��gz
}
|
S)
Nr�r��(?=\))rJ�([z]*)(z)(.*)r�z(?=[r�z	\|\|?|&&?rY)	r�rrr
r�Labelrrlr)r��_label�_label_compoundr�r�r��_token�_token_compoundrr�r�s           rZ�_make_follow_statezBatchLexer._make_follow_statebs���
!)�0���b�����	4��L�L�)�T�6�2�3�3�3�
��
X�
X��
X�
X�X�*Q�/�/�6�
X�
X�
X�
�d�K��t�z�7�>�
J�
J�
L��'�v�'�'�(�(�
�S�_�_�_�d�F�+�
�;��/��F�O�O�

�	
���r\c�d�d}g}|r|�dtdf��|dtjfdtjfdtjfdtfd|�d	�tfd
�||||||||rdnd��ttd
���fdtdftd��gz
}|S)Nz=+\-*/!~rrJz0[0-7]+z
0x[\da-f]+rTz[(),]+r	z
]|%|\^\^)+z,({}|{}|(\^[{}]?)?[^(){}%\^"{}{}]|\^[{}]?{})+�[^)]�[\w\W]r�r�z(?=[\x00|&])r�)r�rr�Oct�Hex�Integerr
rr�r
r	r)	r�r�r�r�rr�_nlws�opr�s	         rZ�_make_arithmetic_statez!BatchLexer._make_arithmetic_stateus��������	4��L�L�)�T�6�2�3�3�3�
�
���$�
�F�J�'�
�V�^�$�
��$�
!�2�
!�
!�
!�8�,�
<�
C�
C�G�Y�X[�]_�af�hn�pu�!�0�g�g�y�2�2�
�4�z�
*�
*�
*�
,��d�F�+��H���
�	
���r\c��g}|r|�dtdf��|�d|r|n|ztttj��df��|S)NrrJz(:?)(%s))r�rrr
rr
)r�rrr�s    rZ�_make_call_statezBatchLexer._make_call_state�sm�����	4��L�L�)�T�6�2�3�3�3�
���k��%L�_�_�f�M��{�D�J�7�7��A�	B�	B�	B��r\c��g}|r|�dtdf��|�d�|r|n|||||rdnd|||rdnd��ttjtj��df��|S)NrrJz(({}?)((?:{}|{}|\^[{}]?{}|[^"%^{}{}{}])*)rrr�r�)r�rr�rrr
rrl)r�rrr�r�r�rr�s        rZ�_make_label_statezBatchLexer._make_label_state�s������	4��L�L�)�T�6�2�3�3�3�
���A�H�H�\d�Ip���jp�ry� �#�(�'I�w�w�	�3��x�7�t�t�R�9�9��t�z�7�>�:�:�F�D�	E�	E�	E��r\c	
� �d|�d|�d|�d|�d�	}	d|�d|�d�ttjtttj��fd|�d|�d	|�d
|r|	n|�d�	ttjtttd�
����fgS)Nr�r�r�r�z	((?:(?<=[z])\d)?)(>>?&|<&)([z]*)(\d)z	])(?<!\^[z])\d)?)(>>?|<)(r�r�rYr�)rrrr
rr
r	)
r�r�r�r�r�r�r�rr�stoken_compounds
          rZ�_make_redirect_statezBatchLexer._make_redirect_state�s���
a�6�`�`��`�`�9�`�`�G[�`�`�`��
A�%�
A�
A�5�
A�
A�
A�
�f�n�k�4���
H�
H�
J�
r�%�
r�
r�#�
r�
r�f�
r�
r�Zb�Go���ho�
r�
r�
r�
�f�n�k�5��V�3L�3L�3L�
M�
M�
O�
�	
r\rPFr�r�r�r�r�r�Tzfollow/compoundzarithmetic/compoundz
call/compoundzlabel/compoundzredirect/compoundzvariable-or-escapez%%|\^[z]?(\^!|[\w\W])rBrArJz\^!|%%z[^"%^z]+|[%^]�sqstringz[^%]+|%�bqstringrYz\d)]+|.z]+|.�(z)(in)(z)(\()r�rQz)(dor�r�z(")((?:z|[^"])*?")([z]*)(\)))rJr�rBz('(?:%%|z|[\w\W])*?')([z(`(?:%%|z|[\w\W])*?`)([r�z-?\d+z((?:cmdextversion|errorlevel)r�z)(\d+)z(definedr�z(exist)rJ�if2z?)(==)(r�r�)rJ�else?r��else)	r�r�r�r�r�r�r#r�r$N);r]r^r_r`rarbrcrdrerfr��	MULTILINE�
IGNORECASE�flagsr�r�rrr�r�r�r�rr�_number�_opwordr�rr�r�r
rr�rrrrrrrrirrmrnrrrlrgrrr
r	rr
rrr�Wordrorpr\rZrr�s�
���������D�6�6�6�G��'�"�I�*�+�I�
4�C��M��L�2�=�(�E�
�C�
�F�
�C��E�
/�S�
/�
/�c�
/�
/�
/�F�S��S�S�#�S�S�3�S��S�S�S��:�3�:�:�6�:�3�:�:�:��9�c�9�9�9�L�
@��
@��
@�
@��
@�
@�
@�F�H�%�H��H�H�#�H�H�H�O�E�1B�E�E�E�G�,�G�2��2�2��2�2�2�G�]��]�]�IL�]�]��]�]�$'�]�]�25�]�]�?B�]�]�!$�]�]��	]�]�&)�	]�]�03�	]�]�>A�	]�]�KN�	]�]�]�I�
B�#�A�A�e�A�V�A�A�A�K�K�3�K�K�u�K�f�K�K�K��
.�V�
.�
.��
.�
.�
.�F�@�f�@�@�)=�@�@�@�O�K�v�K�K�W�K�K�y�K�K�;�K�K�K�G�0;�/C�.A�!�&�'�!'�l�")�=N�$-�3�
H
�H
�H
�H
�T-3�+:��"(�|�"(�/�"�	����&.1��'.�)�#&�e�����*+1�)8�����,2�*9�s�!'��I�
�
�
�
�3G�!$�V�W�%,�V�'0��	
�
�
�
�f��!�!�%�(�(�f��$�$�U�+�+�f�	�,�,�U�3�3�f�	� � ��'�'�	f�
	�"�"�5�)�)�f�	�(�(��/�/�
f�	�*�*�4�0�0�f�	�-�-�d�3�3�f�	�5�5�d�;�;�f�	�)�)�$�/�/�f�	�+�+�D�1�1�f�	�1�1�$�7�7�f�	�
��
�&�
*�s�
*�
*�
*�F�M�:�
�f�"	�
�6�=�&�)�
��
�&�
��
�&�
"�c�
"�
"�
"�F�M�2��G�F�O�O�
�#f�0	��G�(�)�)�
���'�
�1f�8	��G�(�)�)�
���)�
�9f�@	�
�6�=�(�+��G�(�)�)�
,�e�
,�V�
,�
,�
,�d�3�
�Af�L�6�=�(�+��G�(�)�)�
�c�
�
�
���/�
�.�&�
-�
-��
-�
-�
-�
�X�e�e�D��/�/�/���e�D��/�/�/��>�>�?E�
G�
�G�H���	
��K� �
2�&�
2�
2�/�
2�
2�
2�
�X�e�e�D��/�/�/��
9�
9�6�
C�
�#�\�\�\�4� ��G�H���
�>�	�
=�
=�u�
=�
=�
=�
�X�f�m�U�U�4�x�%@�%@�%@�$�!�#�#�
$��6�=�"<�=�
@��
@�
@�%�
@�
@�
@�
�X�e�e�D�
�3�3�3�T�;�
G�
G�
I�
@��
@�
@�%�
@�
@�
@�
�X�e�e�D�
�3�3�3�T�;�
G�
G�
I��G�F�O�O�

��v�~�&��G�F�O�O�
�
R�.?�
Q�
Q�6�
Q�
Q�
Q�
�X�g�u�u�T��8�8�8��n�&�&�'-�
/�C�*�
B�
B�f�
B�
B��
B�
B�
B�
�X�g�u�u�T��8�8�8��e�D�
�3�3�3�5�5�6<�
>�?�(�
>�
>�F�
>�G�
>�
>�
>�
�X�g�u�u�T��8�8�8�
9�
9�6�
C�
B�'�
B�6�
B�
B�W�
B�
B��
B��
B�
B�
B�
�X�e�e�D��5�5�5�x�}��e�D��5�5�5�7�7�8>�
@��e�e�D��/�/�/��A�

�5�&�
4�
4��
4�
4�'�
4�
4�
4�
�X�e�e�D��/�/�/���e�D��/�/�/�1�1�28�
:�:�&�
9�
9�G�
9�
9�v�
9�w�
9�
9�
9�
�X�e�e�D��/�/�/����e�D��/�/�/�1�1�28�
:�	
��U�U�4�v�.�.�.�/�
�K�!C�D��G�F�O�O�
��U�U�4�v�.�.�.�/�
(�&�
(�
(�'�6�:��G�F�O�O�
�Cf�f�f�F�F�Fr\rc�T�eZdZdZdZdgZgZgZdZdZ	e
Zej
d��ZdZdS)	rzp
    Lexer for MS DOS shell sessions, i.e. command lines, including a
    prompt, interspersed with output.
    z
MSDOS Session�dosconz$https://en.wikipedia.org/wiki/MS-DOS�2.1z^([^>]*>)(.*\n?)zMore? N)r]r^r_r`rarbrcrdrerfrr�r�r�r�r�rpr\rZrrsV��������
�D��j�G��I��I�
0�C��M��N��b�j�,�-�-�G��D�D�Dr\rc��eZdZdZdZddgZddgZdgZdZd	Z	e
d
��dedfd
edfdej
dfe
d��gdefdejfdefdejfdeejee��fdefdefdefgdejfdejfdefdefdefdejfgd ed!fd"efd#ejfd$efd%efe
d&��gd'ed!fe
d&��gdej
d!fe
d&��gd(�Zd)S)*rz!
    Lexer for tcsh scripts.
    �Tcsh�tcsh�cshz*.tcshz*.cshzapplication/x-csh�https://www.tcsh.orgz0.10r1r8r9r:r;r2r3r4zc\b(if|endif|else|while|then|foreach|case|default|break|continue|goto|breaksw|end|switch|endsw)\s*\ba�\b(alias|alloc|bg|bindkey|builtins|bye|caller|cd|chdir|complete|dirs|echo|echotc|eval|exec|exit|fg|filetest|getxvers|glob|getspath|hashstat|history|hup|inlib|jobs|kill|limit|log|login|logout|ls-F|migrate|newgrp|nice|nohup|notify|onintr|popd|printenv|pushd|rehash|repeat|rootnode|popd|pushd|set|shift|sched|setenv|setpath|settc|setty|setxvers|shift|source|stop|suspend|source|suspend|telltc|time|umask|unalias|uncomplete|unhash|universe|unlimit|unset|unsetenv|ver|wait|warp|watchlog|where|which)\s*\bz#.*r?�(\b\w+)(\s*)(=)z[\[\]{}()=]+z<<\s*(\'?)\\?(\w+)[\w\W]+?\2rEz!(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"z!(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'rGz[^=\s\[\]{}()$"\'`\\;#]+�\d+(?= |\Z)�\$#?(\w+|.)rLrJrMrNz[^}:"\'`$]+rOrPrQ)rPr1r4r;r9r3N)r]r^r_r`rarbrcrdrerfrrrrgrrjrrmrrirrr
rnrlrrorpr\rZrr's����������D��u�o�G��7�#�I�$�%�I�
 �C��M�
�G�G���
�g�w�'�
���)�
�6�?�K�0��G�F�O�O�
�C�
�
�9��\�	
��W��
�&�-�(�
���$�-��x�!H�!H�I�
�h�'�
,�f�5�
�;��'
�,2�6�=�A�
1�6�=�A�
�T�N�
(�$�/�
�V�$�
�T�]�+�

��G�V�$�
�G��
�T�]�#�
�[�)�
�;���G�F�O�O�

��G�V�$��G�F�O�O�
�
�6�?�F�+��G�F�O�O�
�c5�5�F�F�Fr\rc�T�eZdZdZdZdgZgZgZdZdZ	e
Zej
d��ZdZdS)	r!zh
    Lexer for Tcsh sessions, i.e. command lines, including a
    prompt, interspersed with output.
    zTcsh Session�tcshconr3r.z^([^>]+>)(.*\n?)z? N)r]r^r_r`rarbrcrdrerfrr�r�r�r�r�rpr\rZr!r!ksV��������
�D��k�G��I��I�
 �C��M��N��b�j�,�-�-�G��D�D�Dr\r!c���eZdZdZdZgd�ZddgZdgZdZdZ	e
je
jze
j
zZd	���Zd
���Zd���Zd���Zd
���Zdedfdefd�d�e����eeeje��fdefdejdfdejdfdejfdefdejdfdej fde!j"fd�d�e����e#fd�d�e����e$fd �d�e����e!j%fd!�d�e����e!j%fd"e!j&fd#e!fd$e!fd%efgd&ed'fe'd(��gd)ejfd*ejd'fd+�d�e����ejfd,ejfgd-ej(fd.ejfd/edfd0ejfd1ejfdejd'fgd2ejd'fd/edfd3ejfd4ejfgd5�Z)d6S)7rz&
    For Windows PowerShell code.
    �
PowerShell)�
powershell�pwsh�posh�ps1�psm1z*.ps1z*.psm1ztext/x-powershell�,https://learn.microsoft.com/en-us/powershellz1.5a�while validateset validaterange validatepattern validatelength validatecount until trap switch return ref process param parameter in if global: local: function foreach for finally filter end elseif else dynamicparam do default continue cmdletbinding break begin alias \? % #script #private #local #global mandatory parametersetname position valuefrompipeline valuefrompipelinebypropertyname valuefromremainingarguments helpmessage try catch throwaNand as band bnot bor bxor casesensitive ccontains ceq cge cgt cle clike clt cmatch cne cnotcontains cnotlike cnotmatch contains creplace eq exact f file ge gt icontains ieq ige igt ile ilike ilt imatch ine inotcontains inotlike inotmatch ireplace is isnot le like lt match ne not notcontains notlike notmatch or regex replace wildcarda�write where watch wait use update unregister unpublish unprotect unlock uninstall undo unblock trace test tee take sync switch suspend submit stop step start split sort skip show set send select search scroll save revoke resume restore restart resolve resize reset request repair rename remove register redo receive read push publish protect pop ping out optimize open new move mount merge measure lock limit join invoke install initialize import hide group grant get format foreach find export expand exit enter enable edit dismount disconnect disable deny debug cxnew copy convertto convertfrom convert connect confirm compress complete compare close clear checkpoint block backup assert approve aggregate adda�ac asnp cat cd cfs chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo epal epcsv epsn erase etsn exsn fc fhx fl foreach ft fw gal gbp gc gci gcm gcs gdr ghy gi gjb gl gm gmo gp gps gpv group gsn gsnp gsv gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc select set shcm si sl sleep sls sort sp spjb spps spsv start sujb sv swmi tee trcm type wget where wjb writez�component description example externalhelp forwardhelpcategory forwardhelptargetname functionality inputs link notes outputs parameter remotehelprunspace role synopsisr��childrGz ^(\s*#[#\s]*)(\.(?:{}))([^\n]*$)r�z	#[^\n]*?$z	(&lt;|<)#�multlinez@"\n�heredoc-doublez@'\n.*?\n'@z	`[\'"$@-]rArBz'([^']|'')*'z+(\$|@@|@)((global|script|private|env):)?\w+z({})\bz-({})\bz({})-[a-z_]\w*\bz({})\sz\[[a-z_\[][\w. `,\[\]]*\]z
-[a-z_]\w*rNz![.,;:@{}\[\]$()=+*/\\&%!~?^`|<>-]rQrJrPz[^#&.]+z	#(>|&gt;)z\.({})z[#&.]z`[0abfnrtv'\"$`]z[^$`"]+r8z""z[`$]z\n"@z	[^@\n]+"]�.)rPrArBrBrCN)*r]r^r_r`rarbrcrdrerfr��DOTALLr'r&r(�split�keywords�	operators�verbs�aliases_�commenthelpr
rr��joinrrr�Doc�	Multiline�Heredocrnrlrrirrrj�Constantrrmrorpr\rZrr}s���������D�;�;�;�G��(�#�I�$�%�I�
8�C��M��I��
�%���4�E�	B�DI�5�7�7�
�	�
�E�G�G�
�
	E�GL�e�g�g�
�		)�+0�%�'�'�
�	C�DI�E�G�G���K��)�
�T�N�
0�
7�
7�����8M�8M�
N�
N�
�X�g�v�z�7�
3�
3�
5�
�7�#�
�7�,�j�9�
�f�n�&6�7�
�V�^�,�
�;�'�
�6�=�(�+�
�f�m�,�
;�
�]�
�
�
�
�c�h�h�x�0�0�
1�
1�7�;�
�
�
�s�x�x�	�2�2�
3�
3�X�>�
 �
'�
'�������
8�
8�$�,�G�
�
�
�c�h�h�x�0�0�
1�
1�4�<�@�
)�4�=�9�
�D�!�
�T�N�
1�;�?�1
�6�K��(��G�F�O�O�
�
��*�+�
�7�,�f�5�
�
�
�c�h�h�{�3�3�
4�
4�f�j�A�
�w�(�)�	
�!�&�-�0�
���'�
�k�7�+�
�F�M�"�
�f�m�$�
�6�=�&�)�

��f�n�f�-�
�k�7�+�
�6�>�*�
�6�>�"�	
�[3�3�F�F�Fr\rc�Z�eZdZdZdZddgZgZgZdZdZ	e
ZdZe
jd��Zd	Zd
S)r zn
    Lexer for PowerShell sessions, i.e. command lines, including a
    prompt, interspersed with output.
    zPowerShell Sessionzpwsh-session�ps1conr@r.Tz$^((?:\[[^]]+\]: )?PS[^>]*> ?)(.*\n?)r�N)r]r^r_r`rarbrcrdrerfrr�r�r�r�r�r�rpr\rZr r �s_��������
 �D��x�(�G��I��I�
8�C��M�$�N����b�j�@�A�A�G��D�D�Dr\r c��eZdZdZdZddgZddgZdgZdZd	Z	e
d
��e
d��e
d��gd
edfdedfdej
fgdeee��fdejfdefdejfdeej
ee��fdefdefgdejfdejdfdejfdejfdefdefd efd!efd"efg	dejd#fd$ejfe
d��gd%ed#fe
d&��gd'ed#fd(efd)efd*efd+efe
d&��gd,�Zd-S).r"z'
    Lexer for Fish shell scripts.
    �Fish�fish�	fishshellz*.fishz*.loadzapplication/x-fishzhttps://fishshell.comr.r1r4r5r6r7r�r9r6z�\b(begin|end|if|else|while|break|for|in|return|function|block|case|continue|switch|not|and|or|set|echo|exit|pwd|true|false|cd|count|test)(\s*)\ba�\b(alias|bg|bind|breakpoint|builtin|command|commandline|complete|contains|dirh|dirs|emit|eval|exec|fg|fish|fish_config|fish_indent|fish_pager|fish_prompt|fish_right_prompt|fish_update_completions|fishd|funced|funcsave|functions|help|history|isatty|jobs|math|mimedb|nextd|open|popd|prevd|psub|pushd|random|read|set_color|source|status|trap|type|ulimit|umask|vared|fc|getopts|hash|kill|printf|time|wait)\s*\b(?!\.)r>r?r4z	[\[\]()=]r@z%(?s)\$?"(\\\\|\\[0-7]+|\\.|[^"\\$])*"rArBrCrDrEz&|\||\^|<|>rGr5rHrJrKrQrPrRz[-+*/%^|&]|\*\*|\|\|z\d+#\d+rSrT)rPr5r1r4rBr9r7N)r]r^r_r`rarbrcrdrerfrrrrirrrjrrrmrrrnrlr
rrorpr\rZr"r"s����������D��{�#�G��8�$�I�%�&�I�
!�C��M�
�G�G����G�F�O�O��G�H���
����(�
�G�W�%�
�T�]�+�
�&��X�g�t�
$�
$�
&�N��\�
��w��
�&�-�(�
���$�-��X�!N�!N�O�
�8�$�
.��7�#
�(6�v�}�E�
�6�=�(�+�
3�V�]�C�
�6�=�)�
�;��
�X�&�
�T�N�
�V�$�
*�D�1�

��6�=�&�)�
0�&�-�@��G�H���
��G�V�$��G�F�O�O�
�
�g�v�&�
$�h�/�
�� �
�6�"�
�V���G�F�O�O�

�e:�:�F�F�Fr\r"c
�v�eZdZdZdZdgZdgZdZdZe	d��e	d��e	d��gd	e
jd
fdej
fdefgd
ejfdejfdejfdefgde
jfde
jdfdefdefgde
jdfde
jfe	d��gde
jdfdej
fe	d��gd�Zd�ZdS)r#z7
    Lexer for Laurent Bercot's execline language.
    �execlinez*.execz%https://skarnet.org/software/execlinez2.7r1r4r5z\$\{r;z	\$[\w@#]+r<a�\b(background|backtick|cd|define|dollarat|elgetopt|elgetpositionals|elglob|emptyenv|envfile|exec|execlineb|exit|export|fdblock|fdclose|fdmove|fdreserve|fdswap|forbacktickx|foreground|forstdin|forx|getcwd|getpid|heredoc|homeof|if|ifelse|ifte|ifthenelse|importas|loopwhilex|multidefine|multisubstitute|pipeline|piperw|posix-cd|redirfd|runblock|shift|trap|tryexec|umask|unexport|wait|withstdinas)\br=r>z[{}]z(?s)"(\\.|[^"\\$])*"rArBrGz[^\s{}$"\\]+rJz(?s)(\\\\|\\.|[^"\\$])+rLz[\w#@]+rP)rPr5r1r4rBr;c�*�t|d��rdSdS)N�	execlinebrVrrXs rZr[zExeclineLexer.analyse_text�s#���4��.�.�	��1�	�	r\N)r]r^r_r`rarbrcrerfrrrhrrirrjrrkrlrrnror[rpr\rZr#r#Js]���������D��l�G��
�I�
1�C��M�
�G�G����G�F�O�O��G�H���
��f�o�w�/�
�4�=�)�
�D�M�
��!%��
.��'�*�+�
�w�~�&�
�h��
�%�f�m�4�
�6�=�(�+�
�T�N�
�d�#�	
��6�=�&�)�
'���7��G�H���
��F�O�V�,�
���'��G�F�O�O�
�G)�)�F�V����r\r#)'r`r��pygments.lexerrrrrrrr	r
rr�pygments.tokenr
rrrrrrrrr�
pygments.utilr�__all__rrr�rrrrr!rr r"r#rpr\rZ�<module>r_s�����
�	�	�	�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�)�)�)�)�)�)�����e�e�e�e�e�
�e�e�e�P*�*�*�*�*�Y�*�*�*�,E"�E"�E"�E"�E"�E�E"�E"�E"�P�����,����(_�_�_�_�_��_�_�_�D	�����-����$A�A�A�A�A�
�A�A�A�H�����,����$o�o�o�o�o�j�o�o�o�d�����2����&F�F�F�F�F�Z�F�F�F�P8�8�8�8�8�J�8�8�8�8�8r\