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