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

55 lines
587 B
Scheme
Raw Normal View History

2021-04-09 10:42:49 +02:00
[
(string)
(raw_string)
(heredoc_body)
(heredoc_start)
] @string
(command_name) @function
(variable_name) @variable.other.member
2021-04-09 10:42:49 +02: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 10:42:49 +02:00
[
(command_substitution)
(process_substitution)
(expansion)
]@embedded
[
"$"
"&&"
">"
">>"
"<"
"|"
] @operator
(
(command (_) @constant)
(#match? @constant "^-")
)