| 1 |
[ |
| 2 |
"(" |
| 3 |
")" |
| 4 |
"{" |
| 5 |
"}" |
| 6 |
"[" |
| 7 |
"]" |
| 8 |
"[[" |
| 9 |
"]]" |
| 10 |
"((" |
| 11 |
"))" |
| 12 |
] @punctuation.bracket |
| 13 |
|
| 14 |
[ |
| 15 |
";" |
| 16 |
";;" |
| 17 |
";&" |
| 18 |
";;&" |
| 19 |
"&" |
| 20 |
] @punctuation.delimiter |
| 21 |
|
| 22 |
[ |
| 23 |
">" |
| 24 |
">>" |
| 25 |
"<" |
| 26 |
"<<" |
| 27 |
"&&" |
| 28 |
"|" |
| 29 |
"|&" |
| 30 |
"||" |
| 31 |
"=" |
| 32 |
"+=" |
| 33 |
"=~" |
| 34 |
"==" |
| 35 |
"!=" |
| 36 |
"&>" |
| 37 |
"&>>" |
| 38 |
"<&" |
| 39 |
">&" |
| 40 |
">|" |
| 41 |
"<&-" |
| 42 |
">&-" |
| 43 |
"<<-" |
| 44 |
"<<<" |
| 45 |
".." |
| 46 |
"!" |
| 47 |
] @operator |
| 48 |
|
| 49 |
[ |
| 50 |
(string) |
| 51 |
(raw_string) |
| 52 |
(ansi_c_string) |
| 53 |
(heredoc_body) |
| 54 |
] @string |
| 55 |
|
| 56 |
[ |
| 57 |
(heredoc_start) |
| 58 |
(heredoc_end) |
| 59 |
] @label |
| 60 |
|
| 61 |
(variable_assignment |
| 62 |
(word) @string) |
| 63 |
|
| 64 |
(command |
| 65 |
argument: "$" @string) |
| 66 |
|
| 67 |
(concatenation |
| 68 |
(word) @string) |
| 69 |
|
| 70 |
[ |
| 71 |
"if" |
| 72 |
"then" |
| 73 |
"else" |
| 74 |
"elif" |
| 75 |
"fi" |
| 76 |
"case" |
| 77 |
"in" |
| 78 |
"esac" |
| 79 |
] @keyword.control.conditional |
| 80 |
|
| 81 |
[ |
| 82 |
"for" |
| 83 |
"do" |
| 84 |
"done" |
| 85 |
"select" |
| 86 |
"until" |
| 87 |
"while" |
| 88 |
] @keyword.control.repeat |
| 89 |
|
| 90 |
[ |
| 91 |
"declare" |
| 92 |
"typeset" |
| 93 |
"readonly" |
| 94 |
"local" |
| 95 |
"unset" |
| 96 |
"unsetenv" |
| 97 |
] @keyword |
| 98 |
|
| 99 |
"export" @keyword.control.import |
| 100 |
|
| 101 |
"function" @keyword.function |
| 102 |
|
| 103 |
(special_variable_name) @constant |
| 104 |
|
| 105 |
|
| 106 |
((word) @constant.builtin |
| 107 |
(#any-of? @constant.builtin |
| 108 |
"SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGTRAP" "SIGABRT" "SIGBUS" "SIGFPE" "SIGKILL" "SIGUSR1" |
| 109 |
"SIGSEGV" "SIGUSR2" "SIGPIPE" "SIGALRM" "SIGTERM" "SIGSTKFLT" "SIGCHLD" "SIGCONT" "SIGSTOP" |
| 110 |
"SIGTSTP" "SIGTTIN" "SIGTTOU" "SIGURG" "SIGXCPU" "SIGXFSZ" "SIGVTALRM" "SIGPROF" "SIGWINCH" |
| 111 |
"SIGIO" "SIGPWR" "SIGSYS" "SIGRTMIN" "SIGRTMIN+1" "SIGRTMIN+2" "SIGRTMIN+3" "SIGRTMIN+4" |
| 112 |
"SIGRTMIN+5" "SIGRTMIN+6" "SIGRTMIN+7" "SIGRTMIN+8" "SIGRTMIN+9" "SIGRTMIN+10" "SIGRTMIN+11" |
| 113 |
"SIGRTMIN+12" "SIGRTMIN+13" "SIGRTMIN+14" "SIGRTMIN+15" "SIGRTMAX-14" "SIGRTMAX-13" |
| 114 |
"SIGRTMAX-12" "SIGRTMAX-11" "SIGRTMAX-10" "SIGRTMAX-9" "SIGRTMAX-8" "SIGRTMAX-7" "SIGRTMAX-6" |
| 115 |
"SIGRTMAX-5" "SIGRTMAX-4" "SIGRTMAX-3" "SIGRTMAX-2" "SIGRTMAX-1" "SIGRTMAX")) |
| 116 |
|
| 117 |
((word) @constant.builtin.boolean |
| 118 |
(#any-of? @constant.builtin.boolean "true" "false")) |
| 119 |
|
| 120 |
(comment) @comment |
| 121 |
|
| 122 |
(test_operator) @operator |
| 123 |
|
| 124 |
(command_substitution |
| 125 |
"$(" @punctuation.special |
| 126 |
")" @punctuation.special) |
| 127 |
|
| 128 |
(process_substitution |
| 129 |
[ |
| 130 |
"<(" |
| 131 |
">(" |
| 132 |
] @punctuation.special |
| 133 |
")" @punctuation.special) |
| 134 |
|
| 135 |
(arithmetic_expansion |
| 136 |
[ |
| 137 |
"$((" |
| 138 |
"((" |
| 139 |
] @punctuation.special |
| 140 |
"))" @punctuation.special) |
| 141 |
|
| 142 |
(arithmetic_expansion |
| 143 |
"," @punctuation.delimiter) |
| 144 |
|
| 145 |
(ternary_expression |
| 146 |
[ |
| 147 |
"?" |
| 148 |
":" |
| 149 |
] @keyword.control.conditional) |
| 150 |
|
| 151 |
(binary_expression |
| 152 |
operator: _ @operator) |
| 153 |
|
| 154 |
(unary_expression |
| 155 |
operator: _ @operator) |
| 156 |
|
| 157 |
(postfix_expression |
| 158 |
operator: _ @operator) |
| 159 |
|
| 160 |
(function_definition |
| 161 |
name: (word) @function) |
| 162 |
|
| 163 |
(command_name |
| 164 |
(word) @function) |
| 165 |
|
| 166 |
(command_name |
| 167 |
(word) @function.builtin |
| 168 |
(#any-of? @function.builtin |
| 169 |
"." ":" "alias" "bg" "bind" "break" "builtin" "caller" "cd" "command" "compgen" "complete" |
| 170 |
"compopt" "continue" "coproc" "dirs" "disown" "echo" "enable" "eval" "exec" "exit" "false" "fc" |
| 171 |
"fg" "getopts" "hash" "help" "history" "jobs" "kill" "let" "logout" "mapfile" "popd" "printf" |
| 172 |
"pushd" "pwd" "read" "readarray" "return" "set" "shift" "shopt" "source" "suspend" "test" "time" |
| 173 |
"times" "trap" "true" "type" "typeset" "ulimit" "umask" "unalias" "wait")) |
| 174 |
|
| 175 |
(command |
| 176 |
argument: [ |
| 177 |
(word) @variable.parameter |
| 178 |
(concatenation |
| 179 |
(word) @variable.parameter) |
| 180 |
]) |
| 181 |
|
| 182 |
(declaration_command |
| 183 |
(word) @variable.parameter) |
| 184 |
|
| 185 |
(unset_command |
| 186 |
(word) @variable.parameter) |
| 187 |
|
| 188 |
(number) @constant.numeric |
| 189 |
|
| 190 |
(file_redirect |
| 191 |
(word) @string.special.path) |
| 192 |
|
| 193 |
(herestring_redirect |
| 194 |
(word) @string) |
| 195 |
|
| 196 |
(file_descriptor) @operator |
| 197 |
|
| 198 |
(simple_expansion |
| 199 |
"$" @punctuation.special) @none |
| 200 |
|
| 201 |
(expansion |
| 202 |
"${" @punctuation.special |
| 203 |
"}" @punctuation.special) @none |
| 204 |
|
| 205 |
(expansion |
| 206 |
operator: _ @punctuation.special) |
| 207 |
|
| 208 |
(expansion |
| 209 |
"@" |
| 210 |
. |
| 211 |
operator: _ @constant.character) |
| 212 |
|
| 213 |
((expansion |
| 214 |
(subscript |
| 215 |
index: (word) @constant.character)) |
| 216 |
(#any-of? @constant.character "@" "*")) |
| 217 |
|
| 218 |
"``" @punctuation.special |
| 219 |
|
| 220 |
(variable_name) @variable |
| 221 |
|
| 222 |
((variable_name) @constant |
| 223 |
(#match? @constant "^[A-Z][A-Z_0-9]*$")) |
| 224 |
|
| 225 |
((variable_name) @variable.builtin |
| 226 |
(#any-of? @variable.builtin |
| 227 |
|
| 228 |
"CDPATH" "HOME" "IFS" "MAIL" "MAILPATH" "OPTARG" "OPTIND" "PATH" "PS1" "PS2" |
| 229 |
|
| 230 |
"_" "BASH" "BASHOPTS" "BASHPID" "BASH_ALIASES" "BASH_ARGC" "BASH_ARGV" "BASH_ARGV0" "BASH_CMDS" |
| 231 |
"BASH_COMMAND" "BASH_COMPAT" "BASH_ENV" "BASH_EXECUTION_STRING" "BASH_LINENO" |
| 232 |
"BASH_LOADABLES_PATH" "BASH_REMATCH" "BASH_SOURCE" "BASH_SUBSHELL" "BASH_VERSINFO" |
| 233 |
"BASH_VERSION" "BASH_XTRACEFD" "CHILD_MAX" "COLUMNS" "COMP_CWORD" "COMP_LINE" "COMP_POINT" |
| 234 |
"COMP_TYPE" "COMP_KEY" "COMP_WORDBREAKS" "COMP_WORDS" "COMPREPLY" "COPROC" "DIRSTACK" "EMACS" |
| 235 |
"ENV" "EPOCHREALTIME" "EPOCHSECONDS" "EUID" "EXECIGNORE" "FCEDIT" "FIGNORE" "FUNCNAME" |
| 236 |
"FUNCNEST" "GLOBIGNORE" "GROUPS" "histchars" "HISTCMD" "HISTCONTROL" "HISTFILE" "HISTFILESIZE" |
| 237 |
"HISTIGNORE" "HISTSIZE" "HISTTIMEFORMAT" "HOSTFILE" "HOSTNAME" "HOSTTYPE" "IGNOREEOF" "INPUTRC" |
| 238 |
"INSIDE_EMACS" "LANG" "LC_ALL" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES" "LC_NUMERIC" "LC_TIME" |
| 239 |
"LINENO" "LINES" "MACHTYPE" "MAILCHECK" "MAPFILE" "OLDPWD" "OPTERR" "OSTYPE" "PIPESTATUS" |
| 240 |
"POSIXLY_CORRECT" "PPID" "PROMPT_COMMAND" "PROMPT_DIRTRIM" "PS0" "PS3" "PS4" "PWD" "RANDOM" |
| 241 |
"READLINE_ARGUMENT" "READLINE_LINE" "READLINE_MARK" "READLINE_POINT" "REPLY" "SECONDS" "SHELL" |
| 242 |
"SHELLOPTS" "SHLVL" "SRANDOM" "TIMEFORMAT" "TMOUT" "TMPDIR" "UID")) |
| 243 |
|
| 244 |
(case_item |
| 245 |
value: (word) @variable.parameter) |
| 246 |
|
| 247 |
[ |
| 248 |
(regex) |
| 249 |
(extglob_pattern) |
| 250 |
] @string.regexp |