
    ,h                        d Z ddlZddlmZmZmZmZmZmZm	Z	m
Z
mZmZ ddlmZmZmZmZmZmZmZmZmZmZ ddlmZ g dZ G d de      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Z G d de      Z  G d de      Z! G d de      Z" G d de      Z# G d de      Z$ G d de      Z% G d de      Z&y)z
    pygments.lexers.shell
    ~~~~~~~~~~~~~~~~~~~~~

    Lexers for various shells.

    :copyright: Copyright 2006-2025 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                   x   e Zd ZdZdZg dZg dZg dZdZdZ	 e
d      d	ej                  d
f e
d       e
d      gdedfdedfdej                  dfdej                   fdej                   fdefgd eee      fdej(                  fdej,                  fdej.                  fdej0                  fd eej                   ee      fdefdefdefdefg
d ej4                  fd!ej4                  d"fd#ej.                  fd$ej.                  fd%efd&efd'efd(efd)efd*efd+efgd!ej4                  d,fd-ej4                  f e
d      gd.ej                  d,fd/efd0ej                   fd1efd2ef e
d3      gd4ed,f e
d3      gd5ed,fd6efd7efd8efd9efd:efd;ej                   f e
d3      gd	ej                  d,f e
d3      gd<	Zd= Zy>)?r   z.
    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_*zbash_*zshrcz.zshrcz.kshrckshrcPKGBUILD)zapplication/x-shzapplication/x-shellscriptztext/x-shellscript(https://en.wikipedia.org/wiki/Unix_shellz0.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+#(?! )z0[xX][\da-fA-F]+\d+z[a-zA-Z_]\w*)	rP   r5   r1   r4   rB   r;   r9   r7   r3   c                 B    t        | d      ry| j                  d      ryy )Nz	(ba|z|)sh   z$ g?)r   
startswithtexts    W/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pygments/lexers/shell.pyanalyse_textzBashLexer.analyse_textz   s#    4.??4  !    N)__name__
__module____qualname____doc__namealiases	filenames	mimetypesurlversion_addedr   r   Backtickr   Interpolr   Variabler   r   r   Builtinr   HashbangSingleEscaper   Doubler   r   tokensr[    r\   rZ   r   r      s    D=GI
 XI
4CM G6??K0FOH	
 (gw'1.$dmm4DM
>gz*,; \\ '**+w~~&&--("HT]]J$QRX&X.7"%
* (76==(+3V]]C6==);;K Z v*D14L
 6==&)0&--@H
 FOOV,GT]]#{+;FO
 GV$FO

 gv&,h7(6" &)Vdmm,FO	
 6??F+FO
WOFbr\   r   c                   6    e Zd ZdZdZddgZdgZg ZdZdhZ	d Z
y	)
r   z.
    Lexer for (ba|k|z|)sh Slurm scripts.
    Slurmslurmsbatchz*.slz2.4srunc              #     K   t         j                  | |      D ]e  \  }}}|t        u r$|| j                  v r|t        j
                  |f 3|t        j                  u rd|v r|t        j                  |f _|||f g y w)NSBATCH)
r   get_tokens_unprocessedr   EXTRA_KEYWORDSr   rj   r   rl   r   Pseudo)selfrY   indextokenvalues        rZ   rx   z%SlurmBashLexer.get_tokens_unprocessed   s     #,#C#CD$#O 	*E5%}$*=*=!=T\\500'..(X->W^^U22UE))	*s   B BN)r]   r^   r_   r`   ra   rb   rc   rd   rf   ry   rx   rp   r\   rZ   r   r      s5     D!GIIMXN*r\   r   c                   >    e Zd ZdZdZ ej                  d      Zd Zy)ShellSessionBaseLexerzC
    Base lexer for shell sessions.

    .. versionadded:: 2.1
    Fz^(\([^)]*\))(\s*)c              #     K    | j                   di | j                  }d}d}g }d}t        j                  |      D ]  }|j	                         }| j
                  j                  |      }	|	r|	j	                  d      }
|	j	                  d      }|j                  t        |      dt        j                  j                  |
fgf       |r$|j                  t        |      dt        |fgf       ||	j                         d  }| j                  j                  |      }|rv|s|j                         }|j                  t        |      dt        j                  |j	                  d      fgf       ||j	                  d      z  }|j!                  d      }W|r|j#                  | j$                        r`|j                  t        |      dt        j                  |d t        | j$                         fgf       ||t        | j$                        d  z  }n||z  }|j!                  d      }| j&                  r||j#                  | j$                        ra|j                  t        |      dt        j                  |d t        | j$                         fgf       ||t        | j$                        d  z  }t|r0|j)                  |      }t+        ||      D ]  \  }}}||z   ||f  |j                         t        j,                  |f g }d} |r/t+        ||j)                  |            D ]  \  }}}||z   ||f  y y w)Nr    FrV      z\
rp   )_innerLexerClsoptionsr   finditergroup_venvmatchappendlenr   Prompt
VirtualEnvr   end_ps1rgxstartendswithrW   _ps2_bare_continuationrx   r   Output)r{   rY   
innerlexerposcurcode
insertionsbackslash_continuationr   line
venv_matchvenvvenv_whitespacemtoksitvs                    rZ   rx   z,ShellSessionBaseLexer.get_tokens_unprocessed   s!    (T((84<<8

!&%%d+ /	E;;=D))$/J!''*","2"21"5!!3w<%&(A(A4$H#I#K L"%%s7|)*D/(B'C'E FJNN,-.""4(A "++-C!!3w<%&
$C#D#F G1771:%)0)9)9&)A&'??499-%%s7|)*GNN)-os499~)>)@ (A'B C tC		NO44GtOG)0)9)9&)A&((T__TYY-G!!3w<%&%)/3tyy>%:%< $=#> ? 4DII00%<<WED#0T#B *1a!!eQk)*kkmW^^T99
_/	` ()3)J)J7)SU "1a!eQk!" s   L<L>N)	r]   r^   r_   r`   r   recompiler   rx   rp   r\   rZ   r   r      s%     BJJ+,E;"r\   r   c                   d    e Zd ZdZdZddgZddgZddgZd	Zd
Z	dZ
eZ ej                  d      ZdZy)r   zn
    Lexer for Bash shell sessions, i.e. command lines, including a
    prompt, interspersed with output.
    zBash Sessionconsolezshell-sessionz*.sh-sessionz*.shell-sessionzapplication/x-shell-sessionzapplication/x-sh-sessionr0   z1.1zconsole/example.sh-sessionzk^((?:(?:\[.*?\])|(?:\(\S+\))?(?:| |sh\S*?|\w+\S+[@:]\S+(?:\s+\S+)?|\[\S+[@:][^\n]+\].+))\s*[$#%]\s*)(.*\n?)> N)r]   r^   r_   r`   ra   rb   rc   rd   re   rf   _exampler   r   r   r   r   r   rp   r\   rZ   r   r      s^    
 D/*G!23I.0JKI
4CM+HNbjj	67G Dr\   r   c                   	   e Zd ZdZdZg dZddgZdgZdZdZ	e
j                  e
j                  z  Zd	Zd
ZdZdZde de dZde de de e dZde de e dZde dZde e de dZde e de dZde dZd Zd!e d"e d#Zd$e d%e d&e d'e d(e d&e d)e d*e d+e d'e d,e d+e d-Zde d.e e dZde d.e e d/Zd0e d1e dZd0e d1e dZd0e d2e d3e d3e d4	Z eeeeeeeee eeefd5Z!eeeeeeeefd6Z"eeeeeefd7Z#eefd8Z$eeeeeefd9Z%eeee eeeefd:Z&i d; e!d<      d= e"d<      d> e#d<      d? e$d<      d@ e%d<      dA e&d<      dB e!dC      dD e"dC      dE e#dC      dF e$dC      dG e%dC      dH e&dC      dIee'jP                  fdJe dKe)jT                  fgdLdMe)jV                  dNfee'jP                  fdOe)jT                  fdPe dQe)jV                  f e,dN      gdR e-dI      dSe)j\                  fgdT e-dI      dSe)j^                  fgdUdMe)jV                  dLf e-dI      dPe e dVe0fgdMe)jV                  dLf e-dI      dPe dWe'jP                  fgdXe dYe dZ e1 e2e3dU[      e4 e2e3dU[      e5      dNf e-d=      gd\e5fdXe d]e d e1 e2e3dU[      e4      dNfd^e d_e0f e-d=      gd`e dae db e1e)jV                   e2e3dL[      e0e5      fdMe)jV                  dcfdde dee db e1 e2e3dR[      e0e5      fdfe dge db e1 e2e3dT[      e0e5      f e-dh      gdie6jn                  f e-dh      gdje dke dl e1e4 e2e3dU[      e6jn                        dNfdme dke dke  d e1e4 e2e3dU[       e2e3dn[            dNfdoe dke e  d e1e4 e2e3dU[            dNfdXe e dke dke e d	 e1 e2e3d>[      e8jr                   e2e3d>[            dNfe  e2e3dU[      dpfgdXe dqe dre  d e1 e2e3dU[      e8 e2e3dU[            dNfdXe dke dke e  d e1 e2e3dU[      e8jr                   e2e3dU[            dNfge e2e3dU[      fdse5dtf e,dN      ge e2e3dU[      fdue e4dNf e,dN      gdv	Z:yw)xr   z6
    Lexer for the DOS/Windows Batch file format.
    	Batchfile)batchbatdosbatchwinbatchz*.batz*.cmdzapplication/x-dos-batchz(https://en.wikipedia.org/wiki/Batch_filez0.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                 h   dj                  ||||| rdnd      }d| d| d}d| d| d}d	| d
}d}| rd| d}d|
 d}
d}| r	dt        dfnd|
 d| t        j                  fd| dt        d| f|t        t        d      ft        d|       d| dt        fdt        dfdt        fd| d|
 d| d| r|n| d| d| d t        t        t        t        d            d| fd!| d"| d#| d| d$| dt        t        t        t        d            d| ft        d%|&      t        d| fd'| d(t        t        t        t        d      t              d)| fd)| t        fd*|
 d+| d,|
 dt        t        t        t        d      t              d-fd*|
 d+| d.|
 dt        t        t        t        d      t              d/fd0|
 d1t        d2fd!| d"| d3t        t        t        t        d      t              d4| fd5|
 d6| d7|
 d8| d9|
 d8| d:t        t        t        t        d      t        t        t        d      t        t        t        d            d;fd<|
 d| d|	 d=| | r|n| d
t        j                  d| fd>| d| d?t        t        t        t        d      t              d@| fdAj                  ||||||| rdnd||	      t        t        t        t        d      t        t        t        d      t        t        dB      t              d| ft        d|       gS )CNz(?:{}|{}|[^"%{}{}{}])*r   r   r   z^]|\^[r   z^)]|\^[r   z
((?:(?:\^[z]?)?[^\S\n])*)z
(?:(?=\))|	/compoundrQ   rJ   z
\)((?=\()|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   r   rl   r   r
   r	   r   r   r   r   r   )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_statezBatchLexer._make_begin_state  s    (..w	33;CE"3%vcU+>#+C5uI F!#n5	%/0C/DA"F#-.?-@ B F-5e[&)-.a~>nnL>#TVF8+<=U4v./hvh'(#b\4 K1K +C5 1""3!4DZbBVhsAtt{|  |A  AL  MP  LQ  QXYguT89fX  )*"TF&[VTXSYYZ[guT89fX   = ./ 186&9JL xu%guT8+FF8_ ()*G4&'xxt<M;NaPguT8'B &'xxt<M;NaPguT8'B %&f-wH)*"VHF;guT8+FVH /0	&J[I\\`ag`hhq  sD  rE  EI  JP  IQ  QS  TguT8'D/D/12>@ ./q'$GZF[u}\q  DP  \Q  QR  S^^vfX.0()9+T:guT8'B&"$66<f=PR[]fhkmprxc2sC71guT8'D/t:1N!# fX  fVH%&m7
 7	
r\   c	           	      4   | rdnd}	g }
| r|
j                  dt        df       |
| d| d| r|n| dt        t        t        t        t        j
                  t        j                        ft        d|	       d	| d
t        dfdt        dft        d      gz  }
|
S )Nr   r   (?=\))rJ   ([z]*)(z)(.*)r   z(?=[r   z	\|\|?|&&?rY   )	r   r   r   r   r   Labelr   rl   r   )r   _label_label_compoundr   r   r   _token_token_compoundr  r   r   s              rZ   _make_follow_statezBatchLexer._make_follow_statec  s    
 !)bLL)T623bTX/6)RRWXdKtzz7>>JLhvh'(SE_dF+;/FO
 	
 r\   c                 R   d}g }| r|j                  dt        df       |dt        j                  fdt        j                  fdt        j
                  fdt        fd| d	t        fd
j                  |||||||| rdnd      t        t        d      fdt        dft        d      gz  }|S )Nz=+\-*/!~r	  rJ   z0[0-7]+z
0x[\da-f]+rT   z[(),]+r
  z
]|%|\^\^)+z,({}|{}|(\^[{}]?)?[^(){}%\^"{}{}]|\^[{}]?{})+[^)][\w\W]r   r   z(?=[\x00|&])r   )r   r   r   OctHexIntegerr   r   r   r
   r	   r   )	r   r   r   r   r  r  _nlwsopr   s	            rZ   _make_arithmetic_statez!BatchLexer._make_arithmetic_statev  s     LL)T623$FJJ'V^^$$2$j!8,<CCGYX[]_afhnpu!gy24z*, dF+H
 	
 r\   c                     g }| r|j                  dt        df       |j                  d| r|n|z  t        t        t        j
                        df       |S )Nr	  rJ   z(:?)(%s))r   r   r   r   r   r  )r   r  r  r   s       rZ   _make_call_statezBatchLexer._make_call_state  sP    LL)T623k_fM{DJJ7A 	Br\   c                     g }| r|j                  dt        df       |j                  dj                  | r|n||||| rdnd||| rdnd      t        t        j
                  t        j                        df       |S )Nr	  rJ   z(({}?)((?:{}|{}|\^[{}]?{}|[^"%^{}{}{}])*)r  r  r   r   )r   r   r   r   r   r  r   rl   )r   r  r  r   r   r   r  r   s           rZ   _make_label_statezBatchLexer._make_label_state  s~     LL)T623AHH\djpry #(w	3xtR9 tzz7>>:FD 	E r\   c	           
         d| d| d| d| d	}	d| d| dt        t        j                  t        t        t        j                        fd| d| d	| d
| r|	n| d	t        t        j                  t        t        t        d            fgS )Nr   r   r   r   z	((?:(?<=[z])\d)?)(>>?&|<&)([z]*)(\d)z	])(?<!\^[z])\d)?)(>>?|<)(r   r   rY   r   )r   r   r  r   r   r
   r	   )
r   r   r   r   r   r   r   r  r  stoken_compounds
             rZ   _make_redirect_statezBatchLexer._make_redirect_state  s    
 #6(&	9+QG[F\\_`% 25'Afnnk4HJ%	#ofXQZbhoFppqrfnnk5V3LMO
 	
r\   rP   Fr   r   r   r   r   r   Tzfollow/compoundzarithmetic/compoundzcall/compoundzlabel/compoundzredirect/compoundzvariable-or-escapez%%|\^[z]?(\^!|[\w\W])rB   rA   rJ   z\^!|%%z[^"%^z]+|[%^]sqstringz[^%]+|%bqstringrY   z\d)]+|.z]+|.(z)(in)(z)(\()r   rQ   z)(dor   r   z(")((?:z|[^"])*?")([z]*)(\)))rJ   r   rB   z('(?:%%|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`   ra   rb   rc   rd   re   rf   r   	MULTILINE
IGNORECASEflagsr   r   r  r  r   r   r   r   r  r  _number_opwordr   r  r   r   r  r  r   r  r  r  r  r  r   r   ri   r   rm   rn   r   r   rl   rg   r   r   r
   r	   r   r   r   r  r   Wordro   rp   r\   rZ   r   r      s    D6G'"I*+I
4CMLL2==(E
CF
CESEcU$/F'uE#l3%xsS"3%s6(3%r:-cU&9LxxuK@F!%	#iHO01B0C1EG,GuLT2GH NeC5	#hse D  #u %uHSEse9SE#m	]I
 "#geWVHDAK*3%wugfXUKVHC}A.FfXS)=(>a@OvhfWIQyk;-sKG0;/C.A!&'!'l")=N$-3H
T -3+:"(|"(/"	& .1'.)#&e* +1)8 ,2*9s!'I
 3G!$VW%,V'0	
f!%(f$U+f 	,U3f 	 '	f
 	"5)f 	(/f 	*40f 	-d3f 	5d;f 	)$/f 	+D1f 	1$7f 	&se>*FMM:
f" 	6==&)&&cU'"FMM2FO
#f0 	()'
1f8 	())
9f@ 	6==(+()eWVHG,d3
AfL 6==(+()cU$/
 &xu-eD/D/>?EG H	
 K &/02eD/96C#b\4 H
 	{,ugW=fmmU4x%@$!#$ 6=="<=>%@eD
3T;GI>%@eD
3T;GIFO

 v~~&FO

 ..?-@6(&QguT8nn&'-/ *+2fXRyBguT8D
356<> ()F8G9A>guT896C'6("WIRxyBeD5x}}D578>@ eD/A
 &'!4eD/D/128: &G9Bvhwiq9eD/D/128:	
 U4v./K!CDFO
 U4v./&'('6:FO
CfFr\   r   c                   Z    e Zd ZdZdZdgZg Zg ZdZdZ	dZ
eZ ej                  d      ZdZy	)
r   zp
    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doscon/sessionz^([^>]*>)(.*\n?)zMore? N)r]   r^   r_   r`   ra   rb   rc   rd   re   rf   r   r   r   r   r   r   r   rp   r\   rZ   r   r     sI    
 DjGII
0CMHNbjj,-GDr\   r   c                      e Zd ZdZdZddgZddgZdgZdZd	Z	 e
d
      dedfdedfdej                  df e
d      gdefdej                  fdefdej"                  fd eej&                  ee      fdefdefdefgdej.                  fdej0                  fdefdefdefdej&                  fgd ed!fd"efd#ej&                  fd$efd%ef e
d&      gd'ed!f e
d&      gdej                  d!f e
d&      gd(Zy))*r   z!
    Lexer for tcsh scripts.
    Tcshtcshcshz*.tcshz*.cshzapplication/x-cshhttps://www.tcsh.orgz0.10r1   r8   r9   r:   r;   r2   r3   r4   zc\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]+?\2rE   z!(?s)"(\\\\|\\[0-7]+|\\.|[^"\\])*"z!(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'rG   z[^=\s\[\]{}()$"\'`\\;#]+\d+(?= |\Z)\$#?(\w+|.)rL   rJ   rM   rN   z[^}:"\'`$]+rO   rP   rQ   )rP   r1   r4   r;   r9   r3   N)r]   r^   r_   r`   ra   rb   rc   rd   re   rf   r   r   r   rg   r   rj   r   rm   r   ri   r   r   r   rn   rl   r   ro   rp   r\   rZ   r   r   )  s    DuoG7#I$%I
 CM Ggw')6??K0FO
C9 \\	 W&--($--x!HIh',f5;'
, 26==A16==ATN($/V$T]]+
 GV$GT]]#[);FO
 GV$FO

 6??F+FO
c5Fr\   r   c                   Z    e Zd ZdZdZdgZg Zg ZdZdZ	dZ
eZ ej                  d      ZdZy	)
r!   zh
    Lexer for Tcsh sessions, i.e. command lines, including a
    prompt, interspersed with output.
    zTcsh Sessiontcshconr4  r/  ztcshcon/sessionz^([^>]+>)(.*\n?)z? N)r]   r^   r_   r`   ra   rb   rc   rd   re   rf   r   r   r   r   r   r   r   rp   r\   rZ   r!   r!   m  sI    
 DkGII
 CM HNbjj,-GDr\   r!   c                   L   e Zd ZdZdZg dZddgZdgZdZdZ	e
j                  e
j                  z  e
j                  z  Zd	j                         Zd
j                         Zdj                         Zdj                         Zdj                         Zdedfdefdj/                  dj1                  e             eeej8                  e      fdefdej:                  dfdej<                  dfdej<                  fdefdej>                  dfdej@                  fde!jD                  fdj/                  dj1                  e            e#fdj/                  dj1                  e            e$fd j/                  dj1                  e            e!jJ                  fd!j/                  dj1                  e            e!jJ                  fd"e!jL                  fd#e!fd$e!fd%efgd&ed'f e'd(      gd)ej:                  fd*ej:                  d'fd+j/                  dj1                  e            ej8                  fd,ej:                  fgd-ejP                  fd.ej>                  fd/edfd0ej>                  fd1ej>                  fdej>                  d'fgd2ej<                  d'fd/edfd3ej<                  fd4ej<                  fgd5Z)y6)7r   z&
    For Windows PowerShell code.
    
PowerShell)
powershellpwshposhps1psm1z*.ps1z*.psm1ztext/x-powershell,https://learn.microsoft.com/en-us/powershellz1.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 throwaN  and 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 writezcomponent description example externalhelp forwardhelpcategory forwardhelptargetname functionality inputs link notes outputs parameter remotehelprunspace role synopsisr   childrG   z ^(\s*#[#\s]*)(\.(?:{}))([^\n]*$)r   z	#[^\n]*?$z	(&lt;|<)#multlinez@"\nheredoc-doublez@'\n.*?\n'@z	`[\'"$@-]rA   rB   z'([^']|'')*'z+(\$|@@|@)((global|script|private|env):)?\w+z({})\bz-({})\bz({})-[a-z_]\w*\bz({})\sz\[[a-z_\[][\w. `,\[\]]*\]z
-[a-z_]\w*rN   z![.,;:@{}\[\]$()=+*/\\&%!~?^`|<>-]rQ   rJ   rP   z[^#&.]+z	#(>|&gt;)z\.({})z[#&.]z`[0abfnrtv'\"$`]z[^$`"]+r8   z""z[`$]z\n"@z	[^@\n]+"].)rP   rB  rC  rB   rD  N)*r]   r^   r_   r`   ra   rb   rc   rd   re   rf   r   DOTALLr(  r'  r)  splitkeywords	operatorsverbsaliases_commenthelpr   r   r   joinr   r   r   Doc	MultilineHeredocrn   rl   r   ri   r   r   rj   Constantr   rm   ro   rp   r\   rZ   r   r     s    D;G(#I$%I
8CMII%4E	B DI57 	
 EG 
	E GLeg 
		) +0%' 	CDIEG  K)TN0778MNgvzz7357#7,,j9fnn&67V^^,;'6==(+fmm,;]]chhx017;sxx	23X> ''8$,,Gchhx014<<@)4==9D!TN1;?1
6 K(FO

 **+7,,f5chh{34fjjAw(()	
 !&--0'k7+FMM"fmm$6==&)
 fnnf-k7+6>>*6>>"	
[3Fr\   r   c                   `    e Zd ZdZdZddgZg Zg ZdZdZ	dZ
eZdZ ej                  d	      Zd
Zy)r    zn
    Lexer for PowerShell sessions, i.e. command lines, including a
    prompt, interspersed with output.
    zPowerShell Sessionzpwsh-sessionps1conrA  r/  zpwsh-session/sessionTz$^((?:\[[^]]+\]: )?PS[^>]*> ?)(.*\n?)r   N)r]   r^   r_   r`   ra   rb   rc   rd   re   rf   r   r   r   r   r   r   r   r   rp   r\   rZ   r    r      sR    
  Dx(GII
8CM%H$Nbjj@AGDr\   r    c                   .   e Zd ZdZdZddgZddgZdgZdZd	Z	 e
d
       e
d       e
d      gdedfdedfdej                  fgd eee      fdej                   fdefdej&                  fd eej                  ee      fdefdefgdej,                  fdej,                  dfdej.                  fdej.                  fdefdefd efd!efd"efg	dej,                  d#fd$ej,                  f e
d      gd%ed#f e
d&      gd'ed#fd(efd)efd*efd+ef e
d&      gd,Zy-).r"   z'
    Lexer for Fish shell scripts.
    Fishfish	fishshellz*.fishz*.loadzapplication/x-fishzhttps://fishshell.comr/  r1   r4   r5   r6   r7   r   r9   r7  z\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?   r5  z	[\[\]()=]r@   z%(?s)\$?"(\\\\|\\[0-7]+|\\.|[^"\\$])*"rA   rB   rC   rD   rE   z&|\||\^|<|>rG   r6  rH   rJ   rK   rQ   rP   rR   z[-+*/%^|&]|\*\*|\|\|z\d+#\d+rS   rT   )rP   r5   r1   r4   rB   r9   r7   N)r]   r^   r_   r`   ra   rb   rc   rd   re   rf   r   r   r   ri   r   r   rj   r   r   rm   r   r   rn   rl   r   r   ro   rp   r\   rZ   r"   r"     s    D{#G8$I%&I
!CM GFOH
 (GW%T]]+
& gt$&N \\ w&--($--X!NO8$.7#
( 6v}}E6==(+3V]]C6==);X&TNV$*D1

 6==&)0&--@H
 GV$FO

 gv&$h/ 6"VFO
e:Fr\   r"   c            
          e Zd ZdZdZdgZdgZdZdZ e	d       e	d       e	d      gd	e
j                  d
fdej                  fdefgdej                  fdej"                  fdej$                  fdefgde
j(                  fde
j(                  dfdefdefgde
j(                  dfde
j(                  f e	d      gde
j                  dfdej                  f e	d      gdZd Zy)r#   z7
    Lexer for Laurent Bercot's execline language.
    execlinez*.execz%https://skarnet.org/software/execlinez2.7r1   r4   r5   z\$\{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)"(\\.|[^"\\$])*"rA   rB   rG   z[^\s{}$"\\]+rJ   z(?s)(\\\\|\\.|[^"\\$])+rL   z[\w#@]+rP   )rP   r5   r1   r4   rB   r;   c                     t        | d      ryy )N	execlinebrV   r   rX   s    rZ   r[   zExeclineLexer.analyse_text  s    4. /r\   N)r]   r^   r_   r`   ra   rb   rc   re   rf   r   r   rh   r   ri   r   rj   r   rk   rl   r   rn   ro   r[   rp   r\   rZ   r#   r#   N  s7    DlG
I
1CM GFOH
 foow/4==)DM
 !%. '**+w~~&h
 %fmm46==(+TNd#	
 6==&)'7H
 FOOV,'FO
G)FVr\   r#   )'r`   r   pygments.lexerr   r   r   r   r   r   r	   r
   r   r   pygments.tokenr   r   r   r   r   r   r   r   r   r   pygments.utilr   __all__r   r   r   r   r   r   r   r!   r   r    r"   r#   rp   r\   rZ   <module>r`     s    
2 2 2D D D )e
 eP*Y *,E"E E"P, *_ _D	- &A
 AH, &oj od2 (FZ FP8J 8r\   