blob: 4c7926a49b712c2d5b66de068b4a042d05d6ced3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
; Bash highlights, from tree-sitter/tree-sitter-bash v0.25.1
; queries/highlights.scm (MIT). Reordered so expansions stay visible inside the
; strings that contain them, and capture names mapped onto zed syntax keys.
; Upstream's @embedded captures are dropped: zed paints `embedded` as plain
; foreground, so they only cost query time.
["$" "&&" "||" ">" ">>" "<" "|" ";" "=" "!"] @operator
["case" "do" "done" "elif" "else" "esac" "export" "fi" "for" "function" "if"
"in" "local" "readonly" "select" "then" "unset" "until" "while"] @keyword
[(string) (raw_string) (heredoc_body) (heredoc_start)] @string
(variable_name) @property
(file_descriptor) @number
(command_name) @function
(function_definition name: (word) @function)
((command (_) @constant)
(#match? @constant "^-"))
(comment) @comment
|