2021-04-09 12:42:49 +04:00
|
|
|
[
|
|
|
|
(string)
|
|
|
|
(raw_string)
|
|
|
|
(heredoc_body)
|
|
|
|
(heredoc_start)
|
|
|
|
] @string
|
|
|
|
|
|
|
|
(command_name) @function
|
|
|
|
|
2021-11-03 07:00:52 +04:00
|
|
|
(variable_name) @variable.other.member
|
2021-04-09 12:42:49 +04:00
|
|
|
|
|
|
|
[
|
2024-01-22 22:51:12 +04:00
|
|
|
"if"
|
|
|
|
"then"
|
|
|
|
"else"
|
|
|
|
"elif"
|
|
|
|
"fi"
|
2021-04-09 12:42:49 +04:00
|
|
|
"case"
|
2024-01-22 22:51:12 +04:00
|
|
|
"in"
|
|
|
|
"esac"
|
|
|
|
] @keyword.control.conditional
|
|
|
|
|
|
|
|
[
|
|
|
|
"for"
|
2021-04-09 12:42:49 +04:00
|
|
|
"do"
|
|
|
|
"done"
|
2024-01-22 22:51:12 +04:00
|
|
|
"select"
|
|
|
|
"until"
|
|
|
|
"while"
|
|
|
|
] @keyword.control.repeat
|
|
|
|
|
|
|
|
[
|
|
|
|
"declare"
|
|
|
|
"typeset"
|
2021-04-09 12:42:49 +04:00
|
|
|
"export"
|
2024-01-22 22:51:12 +04:00
|
|
|
"readonly"
|
|
|
|
"local"
|
2021-04-09 12:42:49 +04:00
|
|
|
"unset"
|
2024-01-22 22:51:12 +04:00
|
|
|
"unsetenv"
|
2021-04-09 12:42:49 +04:00
|
|
|
] @keyword
|
|
|
|
|
2024-01-22 22:51:12 +04:00
|
|
|
"function" @keyword.function
|
|
|
|
|
2021-04-09 12:42:49 +04:00
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
(function_definition name: (word) @function)
|
|
|
|
|
2021-11-03 07:00:52 +04:00
|
|
|
(file_descriptor) @constant.numeric.integer
|
2021-04-09 12:42:49 +04:00
|
|
|
|
|
|
|
[
|
|
|
|
(command_substitution)
|
|
|
|
(process_substitution)
|
|
|
|
(expansion)
|
|
|
|
]@embedded
|
|
|
|
|
|
|
|
[
|
|
|
|
"$"
|
|
|
|
"&&"
|
|
|
|
">"
|
|
|
|
">>"
|
|
|
|
"<"
|
|
|
|
"|"
|
2022-04-01 17:48:39 +04:00
|
|
|
(expansion_flags)
|
2021-04-09 12:42:49 +04:00
|
|
|
] @operator
|
|
|
|
|
|
|
|
(
|
|
|
|
(command (_) @constant)
|
|
|
|
(#match? @constant "^-")
|
|
|
|
)
|