helix-mirror/runtime/queries/bash/highlights.scm

56 lines
607 B
Scheme
Raw Normal View History

2021-04-09 12:42:49 +04:00
[
(string)
(raw_string)
(heredoc_body)
(heredoc_start)
] @string
(command_name) @function
(variable_name) @variable.other.member
2021-04-09 12:42:49 +04:00
[
"case"
"do"
"done"
"elif"
"else"
"esac"
"export"
"fi"
"for"
"function"
"if"
"in"
"unset"
"while"
"then"
] @keyword
(comment) @comment
(function_definition name: (word) @function)
(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 "^-")
)