File tree Expand file tree Collapse file tree 1 file changed +47
-5
lines changed
crates/languages/src/bash Expand file tree Collapse file tree 1 file changed +47
-5
lines changed Original file line number Diff line number Diff line change 4
4
(heredoc_body)
5
5
(heredoc_start)
6
6
(ansi_c_string)
7
+ (word)
7
8
] @string
8
9
9
- (command_name) @function
10
-
11
- (variable_name) @property
10
+ (variable_name) @variable
12
11
13
12
[
14
13
"case"
35
34
(comment) @comment
36
35
37
36
(function_definition name: (word) @function )
37
+ (command_name (word) @function )
38
+
39
+ [
40
+ (file_descriptor)
41
+ (number)
42
+ ] @number
38
43
39
- (file_descriptor ) @number
44
+ (regex ) @string.regex
40
45
41
46
[
42
47
(command_substitution)
43
48
(process_substitution)
44
49
(expansion)
45
- ]@embedded
50
+ ] @embedded
51
+
46
52
47
53
[
48
54
"$"
49
55
"&&"
50
56
">"
51
57
">>"
58
+ ">&"
59
+ ">&-"
52
60
"<"
53
61
"|"
62
+ ":"
63
+ "//"
64
+ "/"
65
+ "%"
66
+ "%%"
67
+ "#"
68
+ "##"
69
+ "="
70
+ "=="
54
71
] @operator
55
72
73
+ (test_operator) @keyword.operator
74
+
75
+ [
76
+ ";"
77
+ ] @punctuation.delimiter
78
+
79
+ [
80
+ "("
81
+ ")"
82
+ "{"
83
+ "}"
84
+ "["
85
+ "]"
86
+ ] @punctuation.bracket
87
+
88
+ (simple_expansion
89
+ "$" @punctuation.special )
90
+ (expansion
91
+ "${" @punctuation.special
92
+ "}" @punctuation.special ) @embedded
93
+
94
+ (command_substitution
95
+ "$(" @punctuation.special
96
+ ")" @punctuation.special )
97
+
56
98
(
57
99
(command (_) @constant )
58
100
(#match? @constant "^-")
You can’t perform that action at this time.
0 commit comments