@willbooster/tree-sitter-bash 0.25.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,31 @@
1
1
  [
2
2
  (string)
3
3
  (raw_string)
4
+ (ansi_c_string)
5
+ (translated_string)
4
6
  (heredoc_body)
5
7
  (heredoc_start)
6
8
  ] @string
7
9
 
10
+ (regex) @string.regexp
11
+
8
12
  (command_name) @function
9
13
 
14
+ (function_definition
15
+ name: (word) @function)
16
+
10
17
  (variable_name) @property
11
18
 
19
+ (special_variable_name) @variable.builtin
20
+
12
21
  [
13
22
  "case"
23
+ "coproc"
14
24
  "do"
15
25
  "done"
16
26
  "elif"
17
27
  "else"
18
28
  "esac"
19
- "export"
20
29
  "fi"
21
30
  "for"
22
31
  "function"
@@ -24,33 +33,45 @@
24
33
  "in"
25
34
  "select"
26
35
  "then"
27
- "unset"
36
+ "time"
28
37
  "until"
29
38
  "while"
30
39
  ] @keyword
31
40
 
32
41
  (comment) @comment
33
42
 
34
- (function_definition name: (word) @function)
35
-
36
- (file_descriptor) @number
43
+ [
44
+ (file_descriptor)
45
+ (number)
46
+ ] @number
37
47
 
38
48
  [
39
49
  (command_substitution)
40
50
  (process_substitution)
41
51
  (expansion)
42
- ]@embedded
52
+ (arithmetic_expansion)
53
+ ] @embedded
54
+
55
+ (test_operator) @operator
43
56
 
44
57
  [
45
- "$"
58
+ "!"
46
59
  "&&"
60
+ "||"
61
+ "|"
62
+ "|&"
47
63
  ">"
48
64
  ">>"
49
65
  "<"
50
- "|"
66
+ "<<<"
67
+ "&>"
68
+ "&>>"
69
+ "<&"
70
+ ">&"
71
+ ">|"
72
+ "=~"
51
73
  ] @operator
52
74
 
53
- (
54
- (command (_) @constant)
55
- (#match? @constant "^-")
56
- )
75
+ ((command
76
+ argument: (word) @constant)
77
+ (#match? @constant "^-"))