K idZddlZddlmZmZmZmZmZmZm Z m Z m Z m Z ddl mZmZmZmZmZmZmZmZmZmZddlmZgdZGddeZGd d eZGd d eZGd deZGddeZGddeZ GddeZ!GddeZ"GddeZ#GddeZ$GddeZ%GddeZ&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_insertionsbygroupsincludedefaultthisusingwordsline_re) Punctuation WhitespaceTextCommentOperatorKeywordNameStringNumberGenericshebang_matches) BashLexerBashSessionLexer TcshLexer BatchLexerSlurmBashLexerMSDOSSessionLexerPowerShellLexerPowerShellSessionLexerTcshSessionLexerFishShellLexer ExeclineLexercxeZdZdZdZgdZgdZgdZdZdZ e dd e jd fe d e d gd e dfde dfde jdfdej fdej fdefgdee efdej(fdej,fdej.fde j0fdeej eefdefdefde fdefg d e j4fd!e j4d"fd#e j.fd$e j.fd%efd&efd'efd(efd)efd*efd+efg d!e j4d,fd-e j4fe d gd.e jd,fd/e fd0ej fd1efd2efe d3gd4e d,fe d3gd5e d,fd6efd7efd8efd9efd:efd;ej fe d3gd e jd,fe d3gd< Zd=Zy>)?rz. Lexer for (ba|k|z|)sh shell scripts. Bash)bashshkshzshshellopenrc)z*.shz*.kshz*.bashz*.ebuildz*.eclassz *.exheres-0z*.exlibz*.zshz.bashrcbashrcz.bash_*zbash_*zshrcz.zshrcz.kshrckshrcPKGBUILD)zapplication/x-shzapplication/x-shellscriptztext/x-shellscript(https://en.wikipedia.org/wiki/Unix_shellz0.6basic` backticksdatainterp\$\(\(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;r9r7r3cBt|dry|jdryy)Nz (ba|z|)shz$ g?)r startswithtexts [/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pygments/lexers/shell.py analyse_textzBashLexer.analyse_textzs# 4 . ??4  !N)__name__ __module__ __qualname____doc__namealiases filenames mimetypesurl version_addedrrBacktickrInterpolrVariablerrrBuiltinrHashbangSingleEscaperDoubler rtokensr[r\rZrrs D=GI XI 4CM 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 WOFbr\rc6eZdZdZdZddgZdgZgZdZdhZ dZ y ) rz. Lexer for (ba|k|z|)sh Slurm scripts. Slurmslurmsbatchz*.slz2.4srunc#Ktj||D]e\}}}|tur$||jvr|tj |f3|t jurd|vr|tj|f_|||fgyw)NSBATCH) rget_tokens_unprocessedrEXTRA_KEYWORDSrrjrrlrPseudo)selfrYindextokenvalues rZrxz%SlurmBashLexer.get_tokens_unprocesseds#,#C#CD$#O * E5%}$*=*=!=T\\500'..(X->W^^U22UE))  *sBBN) r]r^r_r`rarbrcrdrfryrxrpr\rZrrs5 D!GIIMXN*r\rc>eZdZdZdZej dZdZy)ShellSessionBaseLexerzC Base lexer for shell sessions. .. versionadded:: 2.1 Fz^(\([^)]*\))(\s*)c #K|jdi|j}d}d}g}d}tj|D]}|j }|j j |} | r| j d} | j d} |jt|dtjj| fgf| r$|jt|dt| fgf|| jd}|jj |} | rv|s|j}|jt|dtj| j dfgf|| j dz }|j!d}W|r|j#|j$r`|jt|dtj|dt|j$fgf||t|j$dz }n||z }|j!d}|j&r||j#|j$ra|jt|dtj|dt|j$fgf||t|j$dz }t|r0|j)|} t+|| D]\}}}||z||f|jtj,|fg}d}|r/t+||j)|D]\}}}||z||fyyw)NrFrVz\ rp)_innerLexerClsoptionsr finditergroup_venvmatchappendlenrPrompt VirtualEnvrend_ps1rgxstartendswithrW_ps2_bare_continuationrxrOutput)r{rY innerlexerposcurcode insertionsbackslash_continuationrline venv_matchvenvvenv_whitespacemtoksitvs rZrxz,ShellSessionBaseLexer.get_tokens_unprocesseds!(T((84<<8  !&%%d+/ E;;=D))$/J!''*","2"21"5!!3w<%&(A(A4$H#I#KL"%%s7|)*D/(B'C'EFJNN,-. ""4(A"++-C!!3w<%& $C#D#FG1771:%)0)9)9&)A&'??499-%%s7|)*GNN)-os499~)>)@(A'BCtC NO44GtOG)0)9)9&)A&((T__TYY-G!!3w<%&%)/3tyy>%:%<$=#>?4DII00%<N) r]r^r_r`rrecompilerrxrpr\rZrrs%  BJJ+ ,E;"r\rcdeZdZdZdZddgZddgZddgZd Zd Z d Z e Z e jd Zd Zy)rzn Lexer for Bash shell sessions, i.e. command lines, including a prompt, interspersed with output. z Bash Sessionconsolez shell-sessionz *.sh-sessionz*.shell-sessionzapplication/x-shell-sessionzapplication/x-sh-sessionr0z1.1zconsole/example.sh-sessionzk^((?:(?:\[.*?\])|(?:\(\S+\))?(?:| |sh\S*?|\w+\S+[@:]\S+(?:\s+\S+)?|\[\S+[@:][^\n]+\].+))\s*[$#%]\s*)(.*\n?)> N)r]r^r_r`rarbrcrdrerf_examplerrrrrrrpr\rZrrs^ D/*G!23I.0JKI 4CM+HNbjj 67G Dr\rc eZdZdZdZgdZddgZdgZdZdZ e je jzZ d Zd Zd Zd Zd ededZdededeedZdedeedZdedZdeededZdeededZdedZd Zd!ed"ed#Zd$ed%ed&ed'ed(ed&ed)ed*ed+ed'ed,ed+ed-Zd ed.eedZd ed.eed/Zd0ed1edZd0ed1edZd0ed2ed3ed3ed4 Z eeeeeeeee eeef d5Z!eeeeeeeefd6Z"eeeeeefd7Z#eefd8Z$eeeeeefd9Z%eeee eeeefd:Z&id;e!d<d=e"d<d>e#d<d?e$d<d@e%d<dAe&d<dBe!dCdDe"dCdEe#dCdFe$dCdGe%dCdHe&dCdIee'jPfdJedKe)jTfgdLdMe)jVdNfee'jPfdOe)jTfdPedQe)jVfe,dNgdRe-dIdSe)j\fgdTe-dIdSe)j^fgdUdMe)jVdLfe-dIdPeedVe0fgdMe)jVdLfe-dIdPedWe'jPfgdXedYedZe1e2e3dU[e4e2e3dU[e5dNfe-d=gd\e5fdXed]ede1e2e3dU[e4dNfd^ed_e0fe-d=gd`edaedbe1e)jVe2e3dL[e0e5fdMe)jVdcfddedeedbe1e2e3dR[e0e5fdfedgedbe1e2e3dT[e0e5fe-dhgdie6jnfe-dhgdjedkedle1e4e2e3dU[e6jndNfdmedkedke de1e4e2e3dU[e2e3dn[dNfdoedkee de1e4e2e3dU[dNfdXeedkedkeed e1e2e3d>[e8jre2e3d>[dNfe e2e3dU[dpfgdXedqedre de1e2e3dU[e8e2e3dU[dNfdXedkedkee de1e2e3dU[e8jre2e3dU[dNfgee2e3dU[fdse5dtfe,dNgee2e3dU[fduee4dNfe,dNgdv Z:yw)xrz6 Lexer for the DOS/Windows Batch file format. Batchfile)batchbatdosbatchwinbatchz*.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 hdj|| |||rdnd} d|d|d}d|d|d}d |d }d}|rd |d}d | d} d }|r d tdfnd| d|tjfd|dtd|f|t t dftd|d|dtfdtdfdtfd|d| d|d|r|n|d|d|d ttt t dd|fd!|d"| d#|d|d$| d ttt t dd|ftd%|&td|fd'|d(ttt t dtd)|fd)|tfd*| d+|d,| dttt t dtd-fd*| d+|d.| dttt t dtd/fd0| d1td2fd!|d"|d3ttt t dtd4|fd5| d6|d7| d8|d9| d8|d: ttt t dtt t dtt t dd;fd<| d|d| d=||r|n|d tjd|fd>|d|d?ttt t dtd@|fdAj|||||||rdnd|| ttt t dtt t dt t dBtd|ftd|gS)CNz(?:{}|{}|[^"%{}{}{}])*rrrz^]|\^[rz^)]|\^[rz ((?:(?:\^[z]?)?[^\S\n])*)z (?:(?=\))| /compoundrQrJz \)((?=\()|z(?=followrYstateredirect[]+\( root/compoundz@+z((?:for|if|rem)(?:(?=(?:\^[z"]?)?/)|(?:(?!\^)|(?<=m))(?:(?=\()|z)))(?z?(?:\^[z ]?)?/(?:\^[z]?)?\?)z(goto)(z(?:\^[z]?)?\?)'assocbreakcdchdirclscolorcopydatedeldirdpathechoendlocaleraseexitftypekeysmdmkdirmklinkmovepathpausepopdpromptpushdrdrenrenamermdirsetlocalshiftrtimetitletypeververifyvol)suffixz(call)(z?)(:)callz(forz(?!\^))(z)(/f)for/fforz)(/l)for/lrrz(?!\^))for2rz?)(:?)labelz (if(?:(?=\()|z )(?!\^))(z?)((?:/iz)?)(z ?)((?:notz?))(?ifz rem(((?=\()|z?.*|z(setz(/a) arithmeticzY(set{}){}((?:/p)?){}((?:(?:(?:\^[{}]?)?[^"{}{}^={}]|\^[{}]?[^"=])+)?)((?:(?:\^[{}]?)?=)?)variable) formatr rrlrr r rrrr r)compound _core_token_core_token_compound_keyword_terminator_nl_punct_string_space _start_label_stoken_token_terminator _variable_wsrest rest_of_linerest_of_line_compound set_spacers rZ_make_begin_statezBatchLexer._make_begin_states(..w 33;CE"3%vcU+> #+C5uI F!#n5  %/0C/DA"F #-.?-@ B  F-5e[& )-.a ~>nnL> #TVF8+< = U4v. / hvh' (#b\4 K 1 K +C51""3!4DZbBVhsAtt{||AALMPLQQXY guT8 9fX  )*"TF&[VTXSYYZ [ guT8 9fX  = . / 186&9J  Lxu % guT8+ FF8_ () *G 4&'xxt @./q'$GZF[u}\qDP\QQRS ^^vfX. 0()9+T : guT8' B& " $66> J L hvh' (SE_dF + ; / FO    r\cRd}g}|r|jdtdf|dtjfdtjfdtj fdt fd|d tfd j||||||||rd nd ttd fdtdftdgz }|S)Nz=+\-*/!~r rJz0[0-7]+z 0x[\da-f]+rTz[(),]+r z ]|%|\^\^)+z,({}|{}|(\^[{}]?)?[^(){}%\^"{}{}]|\^[{}]?{})+[^)][\w\W]rrz (?=[\x00|&])r) rrrOctHexIntegerr rrr r r) rrrrrr_nlwsoprs rZ_make_arithmetic_statez!BatchLexer._make_arithmetic_statevs  LL)T62 3  $ FJJ ' V^^ $  $2$j !8 , < C CGYX[]_afhnpu!gy2 4z * ,dF + H    r\cg}|r|jdtdf|jd|r|n|ztttj df|S)Nr rJz(:?)(%s))rrrr rr )rr r rs rZ_make_call_statezBatchLexer._make_call_statesP  LL)T62 3 k_fM{DJJ7A B r\c g}|r|jdtdf|jdj|r|n|||||rdnd|||rdndttj t jdf|S)Nr rJz(({}?)((?:{}|{}|\^[{}]?{}|[^"%^{}{}{}])*)rrrr)rrrrrr rrl)rr r rrrrrs rZ_make_label_statezBatchLexer._make_label_states~  LL)T62 3 AHH\djpry #(w 3xtR9tzz7>>:FD E r\c d|d|d|d|d } d|d|dttjtttjfd|d|d |d |r| n|d ttjtt t d fgS)Nrrrrz ((?:(?<=[z])\d)?)(>>?&|<&)([z]*)(\d)z ])(?>?|<)(rrrYr)rrrr rr r ) rrrrrrrrrstoken_compounds rZ_make_redirect_statezBatchLexer._make_redirect_states #6(& 9+QG[F\\_`% 25' A fnnk4 H J% #ofXQZbhoFppq r fnnk5V3L M O  r\rPFrrrrrrTzfollow/compoundzarithmetic/compoundz call/compoundzlabel/compoundzredirect/compoundzvariable-or-escapez%%|\^[z]?(\^!|[\w\W])rBrArJz\^!|%%z[^"%^z]+|[%^]sqstringz[^%]+|%bqstringrYz\d)]+|.z]+|.(z)(in)(z)(\()rrQz)(dorrz(")((?:z |[^"])*?")([z]*)(\)))rJrrBz('(?:%%|z|[\w\W])*?')([z(`(?:%%|z|[\w\W])*?`)([rz-?\d+z((?:cmdextversion|errorlevel)rz)(\d+)z(definedrz(exist)rJif2z?)(==)(rr)rJelse?relse) rrrrrrr$rr%N);r]r^r_r`rarbrcrdrerfr MULTILINE IGNORECASEflagsrrrrrrrrr r _number_opwordrrrrrrrrrrrrr rrirrmrnrrrlrgrrr r rr rrrWordrorpr\rZrrs D6G'"I*+I 4CM LL2== (E C F C ESEcU$ /F'uE#l3%xsS"3%s6(3%r:-cU&9LxxuK @F!% #iHO01B0C1EG,GuLT2GHNeC5 #hseD #u%uHSEse9SE#m ]I "#geWVHDAK*3%wugfXUKVHC }A .FfXS)=(>a@OvhfWIQyk;-sKG0;/C.A!&'!'l")=N$-3 H T-3+:"(|"(/" &.1'.)#&e*+1)8,2*9s!'I 3G!$VW%,V'0  f!%(f$U+f ,U3f  ' f "5) f (/ f *40f -d3f 5d;f )$/f +D1f 1$7f   &se> *FMM : f"  6==& )  &  &cU' "FMM 2 FO  #f0  ( )  ' 1f8  ( )  ) 9f@  6==( + ( )eWVHG ,d 3 AfL6==( + ( )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 guT8nn&'- /*+2fXRy B guT8D 356< >()F8G9A > guT8 96 C'6("WIRxy B eD 5x}}D 578> @eD/ A  &'! 4 eD/D/128 :&G9Bvhwiq 9 eD/D/128 :  U4v. / K!C D FO U4v. /&' ('6 : FO CfFr\rcZeZdZdZdZdgZgZgZdZdZ dZ e Z e jdZdZy ) rzp Lexer for MS DOS shell sessions, i.e. command lines, including a prompt, interspersed with output. z MSDOS Sessiondosconz$https://en.wikipedia.org/wiki/MS-DOS2.1zdoscon/sessionz^([^>]*>)(.*\n?)zMore? N)r]r^r_r`rarbrcrdrerfrrrrrrrrpr\rZrrsI DjGII 0CMHNbjj,-G Dr\rc eZdZdZdZddgZddgZdgZdZd Z e d d e d fd e dfde jdfe dgde fdejfdefde j"fdeej&eefdefde fdefgde j.fde j0fdefdefdefdej&fgd e d!fd"e fd#ej&fd$efd%efe d&gd'e d!fe d&gde jd!fe d&gd(Zy))*rz! Lexer for tcsh scripts. Tcshtcshcshz*.tcshz*.cshzapplication/x-cshhttps://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 DuoG7#I$%I CM 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 c5Fr\rcZeZdZdZdZdgZgZgZdZdZ dZ e Z e jdZdZy ) r!zh Lexer for Tcsh sessions, i.e. command lines, including a prompt, interspersed with output. z Tcsh Sessiontcshconr4r/ztcshcon/sessionz^([^>]+>)(.*\n?)z? N)r]r^r_r`rarbrcrdrerfrrrrrrrrpr\rZr!r!msI DkGII CM HNbjj,-G Dr\r!cLeZdZdZdZgdZddgZdgZdZdZ e je jze jzZd jZd jZd jZd jZd jZdedfdefdj/dj1eeeej8efdefdej:dfdej<dfdej<fdefdej>dfdej@fde!jDfdj/dj1ee#fdj/dj1ee$fd j/dj1ee!jJfd!j/dj1ee!jJfd"e!jLfd#e!fd$e!fd%efgd&ed'fe'd(gd)ej:fd*ej:d'fd+j/dj1eej8fd,ej:fgd-ejPfd.ej>fd/edfd0ej>fd1ej>fdej>d'fgd2ej<d'fd/edfd3ej<fd4ej<fgd5Z)y6)7rz& For Windows PowerShell code. PowerShell) powershellpwshposhps1psm1z*.ps1z*.psm1ztext/x-powershell,https://learn.microsoft.com/en-us/powershellz1.5awhile 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 wildcardawrite 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 addaac 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 synopsisrchildrGz ^(\s*#[#\s]*)(\.(?:{}))([^\n]*$)rz #[^\n]*?$z (<|<)#multlinez@"\nheredoc-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 #(>|>)z\.({})z[#&.]z`[0abfnrtv'\"$`]z[^$`"]+r8z""z[`$]z\n"@z [^@\n]+"].)rPrBrCrBrDN)*r]r^r_r`rarbrcrdrerfrDOTALLr(r'r)splitkeywords operatorsverbsaliases_ commenthelpr rrjoinrrrDoc MultilineHeredocrnrlrrirrrjConstantrrmrorpr\rZrrs D;G(#I$%I 8CM II % 4E B DI57   EG  EGLeg  )+0%'  CDIEGK ) TN 0 7 78M N gvzz7 3 5 7 # 7,,j 9 fnn&6 7 V^^ , ; ' 6==( + fmm , ; ]]    chhx0 17 ;   sxx 2 3X > ' ' 8$,, G   chhx0 14<< @ )4== 9 D ! TN 1; ?1 6K ( FO ** + 7,,f 5   chh{3 4fjj A w(( )  !&-- 0  ' k7 + FMM " fmm $ 6==& )  fnnf - k7 + 6>> * 6>> "  [3Fr\rc`eZdZdZdZddgZgZgZdZdZ dZ e Z dZ ejd Zd Zy ) r zn Lexer for PowerShell sessions, i.e. command lines, including a prompt, interspersed with output. zPowerShell Sessionz pwsh-sessionps1conrAr/zpwsh-session/sessionTz$^((?:\[[^]]+\]: )?PS[^>]*> ?)(.*\n?)rN)r]r^r_r`rarbrcrdrerfrrrrrrrrrpr\rZr r sR Dx(GII 8CM%H$Nbjj@AG Dr\r c.eZdZdZdZddgZddgZdgZdZd Z e d e d e d gd e dfde dfde jfgdee efde j fdefdej&fdee jeefdefdefgdej,fdej,dfdej.fdej.fdefdefd efd!efd"efg dej,d#fd$ej,fe d gd%e d#fe d&gd'e d#fd(efd)efd*efd+efe d&gd,Zy-).r"z' Lexer for Fish shell scripts. Fishfish fishshellz*.fishz*.loadzapplication/x-fishzhttps://fishshell.comr/r1r4r5r6r7rr9r7z\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?r5z [\[\]()=]r@z%(?s)\$?"(\\\\|\\[0-7]+|\\.|[^"\\$])*"rArBrCrDrEz &|\||\^|<|>rGr6rHrJrKrQrPrRz[-+*/%^|&]|\*\*|\|\|z\d+#\d+rSrT)rPr5r1r4rBr9r7N)r]r^r_r`rarbrcrdrerfrrrrirrrjrrrmrrrnrlr rrorpr\rZr"r"s D{#G8$I%&I !CM 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 eZdZdZdZdgZdgZdZdZe de de dgd e jd fd e jfd efgd e jfdej"fdej$fdefgde j(fde j(dfdefdefgde j(dfde j(fe dgde jdfde jfe dgdZdZy)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;ct|dryy)N execlinebrVrrXs rZr[zExeclineLexer.analyse_texts 4 . /r\N)r]r^r_r`rarbrcrerfrrrhrrirrjrrkrlrrnror[rpr\rZr#r#Ns7 DlG I 1CM G  FO H  foow / 4== ) DM !%  .'** + w~~ & h   %fmm 4 6==( + TN d #  6==& ) ' 7 H  FOOV ,  ' FO G)FVr\r#)'r`rpygments.lexerrrrrrrr r r r pygments.tokenr rrrrrrrrr pygments.utilr__all__rrrrrrrr!rr r"r#rpr\rZr`s 222DDD)  e eP*Y*,E"EE"P,*__D -&A AH,&ojod2(FZFP8J8r\