highlights.scm

 1[
 2  (string)
 3  (raw_string)
 4  (heredoc_body)
 5  (heredoc_start)
 6  (ansi_c_string)
 7] @string
 8
 9(command_name) @function
10
11(variable_name) @property
12
13[
14  "case"
15  "do"
16  "done"
17  "elif"
18  "else"
19  "esac"
20  "export"
21  "fi"
22  "for"
23  "function"
24  "if"
25  "in"
26  "select"
27  "then"
28  "unset"
29  "until"
30  "while"
31  "local"
32  "declare"
33] @keyword
34
35(comment) @comment
36
37(function_definition name: (word) @function)
38
39(file_descriptor) @number
40
41[
42  (command_substitution)
43  (process_substitution)
44  (expansion)
45]@embedded
46
47[
48  "$"
49  "&&"
50  ">"
51  ">>"
52  "<"
53  "|"
54] @operator
55
56(
57  (command (_) @constant)
58  (#match? @constant "^-")
59)