j S r SSKrSSKJrJrJrJrJrJrJ r J
r
JrJr SSK
JrJrJrJrJrJrJrJrJrJr SSKJr / SQr " S S\5 r " S S
\5 r " S S\5 r " S
S\5 r " S S\5 r " S S\5 r " S S\5 r! " S S\5 r" " S S\5 r# " S S\5 r$ " S S\5 r% " S S\5 r&g)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
ExeclineLexerc \ rS rSrSrSr/ SQr/ SQr/ SQrSr Sr
\" S 5 S
\R S4\" S5 \" S
5 /S\S4S\S4S\R S4S\R" 4S\R" 4S\4/S\" \\5 4S\R* 4S\R. 4S\R0 4S\R2 4S\" \R" \\5 4S\4S\4S\4S \4/
S!\R6 4S"\R6 S#4S$\R0 4S%\R0 4S&\4S'\4S(\4S)\4S*\4S+\4S,\4/S"\R6 S-4S.\R6 4\" S
5 /S/\R S-4S0\4S1\R" 4S2\4S3\4\" S45 /S5\S-4\" S45 /S6\S-4S7\4S8\4S9\4S:\4S;\4S<\R" 4\" S45 /S
\R S-4\" S45 /S=. rS> rS?r g@)Ar z&
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*) rQ r6 r2 r5 rC r<