@willbooster/tree-sitter-bash 3.0.0 → 3.0.2

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.
package/grammar.js CHANGED
@@ -146,6 +146,9 @@ module.exports = grammar({
146
146
  $._command_substitution_start,
147
147
  $._arithmetic_substitution_start,
148
148
  $._arithmetic_cache_reset,
149
+ $._timing_keyword,
150
+ $._timing_option,
151
+ $._timing_terminator,
149
152
  ],
150
153
 
151
154
  extras: ($) => [$.comment, $.heredoc_body, /[ \t\n]/, /\\\n/, $._line_continuation, $._arithmetic_cache_reset],
@@ -204,8 +207,9 @@ module.exports = grammar({
204
207
  prec.right(
205
208
  2,
206
209
  seq(
207
- 'time',
208
- optional(field('option', alias('-p', $.word))),
210
+ choice('time', alias($._timing_keyword, 'time')),
211
+ optional(field('option', alias(choice('-p', $._timing_option), $.word))),
212
+ optional(alias($._timing_terminator, $.word)),
209
213
  optional(choice($._command_statement, $.pipeline, $.negated_command))
210
214
  )
211
215
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-bash",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Bash grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -46,7 +46,7 @@
46
46
  "@willbooster/oxfmt-config": "1.2.2",
47
47
  "@willbooster/oxlint-config": "1.4.8",
48
48
  "@willbooster/wb": "22.18.0",
49
- "@willbooster/web-tree-sitter": "1.4.2",
49
+ "@willbooster/web-tree-sitter": "1.4.3",
50
50
  "conventional-changelog-conventionalcommits": "10.4.0",
51
51
  "lefthook": "2.1.14",
52
52
  "oxfmt": "0.70.0",
@@ -2882,7 +2882,7 @@
2882
2882
  }
2883
2883
  },
2884
2884
  "children": {
2885
- "multiple": false,
2885
+ "multiple": true,
2886
2886
  "required": false,
2887
2887
  "types": [
2888
2888
  {
@@ -2944,6 +2944,10 @@
2944
2944
  {
2945
2945
  "type": "while_statement",
2946
2946
  "named": true
2947
+ },
2948
+ {
2949
+ "type": "word",
2950
+ "named": true
2947
2951
  }
2948
2952
  ]
2949
2953
  }
Binary file
package/tree-sitter.json CHANGED
@@ -18,7 +18,7 @@
18
18
  }
19
19
  ],
20
20
  "metadata": {
21
- "version": "3.0.0",
21
+ "version": "3.0.2",
22
22
  "license": "MIT",
23
23
  "description": "Bash grammar for tree-sitter",
24
24
  "authors": [