@willbooster/tree-sitter-bash 6.0.0 → 7.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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![license](https://img.shields.io/npm/l/@willbooster/tree-sitter-bash.svg)](https://www.npmjs.com/package/@willbooster/tree-sitter-bash)
5
5
  [![Test](https://github.com/WillBooster/tree-sitter-bash/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-bash/actions/workflows/test.yml)
6
6
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
7
- [![wbfy](https://img.shields.io/badge/wbfy-20.41.8-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
7
+ [![wbfy](https://img.shields.io/badge/wbfy-20.45.0-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
8
 
9
9
  Bash grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
10
10
  [tree-sitter/tree-sitter-bash](https://github.com/tree-sitter/tree-sitter-bash). We are grateful to its authors and
@@ -17,13 +17,13 @@ As a result, its syntax trees differ from the original grammar's; review your qu
17
17
  ## Usage
18
18
 
19
19
  The npm package ships `tree-sitter-bash.wasm` for
20
- [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) 10.0.2 or later in the 10.x series,
20
+ [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) 11.0.1 or later in the 11.x series,
21
21
  a peer dependency.
22
22
  The parser carries the ABI number of WillBooster/tree-sitter (`0x57420007`), so only that runtime loads it; the
23
23
  original tree-sitter runtime rejects it, and earlier WillBooster runtime ABIs do too:
24
24
 
25
25
  ```sh
26
- npm install @willbooster/tree-sitter-bash @willbooster/web-tree-sitter@^10.0.2
26
+ npm install @willbooster/tree-sitter-bash @willbooster/web-tree-sitter@^11.0.1
27
27
  ```
28
28
 
29
29
  In Node.js and Bun, load the grammar from its path:
@@ -67,7 +67,7 @@ parser.setLanguage(await Language.load(bash));
67
67
 
68
68
  The package also ships the queries in `queries/` and the node types in `src/node-types.json`.
69
69
 
70
- Upgrade `@willbooster/web-tree-sitter` to 10.0.2 or later in the 10.x series when upgrading this package. Recovery trees
70
+ Upgrade `@willbooster/web-tree-sitter` to 11.0.1 or later in the 11.x series when upgrading this package. Recovery trees
71
71
  for malformed scripts can differ across runtime versions, so review consumers that depend on the exact shape of
72
72
  `ERROR` nodes.
73
73
 
package/grammar.js CHANGED
@@ -153,6 +153,7 @@ module.exports = grammar({
153
153
  sym('_timing_option'),
154
154
  sym('_timing_terminator'),
155
155
  sym('_backquote_escape'),
156
+ sym('_redirect_destination_start'),
156
157
  ],
157
158
 
158
159
  // Bash removes the backslash before `$` (and before `"` where the backquotes are inside double quotes)
@@ -377,6 +378,7 @@ module.exports = grammar({
377
378
  token.nonkeyword('>&')
378
379
  )
379
380
  ),
381
+ sym('_redirect_destination_start'),
380
382
  field('destination', $._argument)
381
383
  ),
382
384
  field('operator', choice(token.nonkeyword('<&-'), token.nonkeyword('>&-')))
@@ -387,6 +389,7 @@ module.exports = grammar({
387
389
  seq(
388
390
  optional(field('descriptor', sym('file_descriptor'))),
389
391
  field('operator', token.nonkeyword('<<<')),
392
+ sym('_redirect_destination_start'),
390
393
  field('value', $._argument)
391
394
  ),
392
395
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-bash",
3
- "version": "6.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Bash grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -41,26 +41,26 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@tsconfig/bun": "1.0.11",
44
- "@types/bun": "1.4.2",
44
+ "@types/bun": "1.4.3",
45
45
  "@vitest/browser-playwright": "5.0.3",
46
46
  "@willbooster/oxfmt-config": "1.2.2",
47
47
  "@willbooster/oxlint-config": "1.4.8",
48
- "@willbooster/wb": "22.26.1",
49
- "@willbooster/web-tree-sitter": "10.0.2",
48
+ "@willbooster/wb": "22.26.2",
49
+ "@willbooster/web-tree-sitter": "11.0.1",
50
50
  "conventional-changelog-conventionalcommits": "10.4.1",
51
- "lefthook": "2.2.1",
52
- "oxfmt": "0.72.0",
53
- "oxlint": "1.87.0",
51
+ "lefthook": "2.2.2",
52
+ "oxfmt": "0.73.0",
53
+ "oxlint": "1.88.0",
54
54
  "oxlint-tsgolint": "7.0.2004",
55
55
  "playwright": "1.64.0",
56
56
  "semantic-release": "25.0.9",
57
- "sort-package-json": "4.0.0",
57
+ "sort-package-json": "4.1.0",
58
58
  "vite": "8.3.4",
59
59
  "vitest": "5.0.3",
60
60
  "wrangler": "4.149.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@willbooster/web-tree-sitter": "^10.0.2"
63
+ "@willbooster/web-tree-sitter": "^11.0.1"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -18,7 +18,7 @@
18
18
  }
19
19
  ],
20
20
  "metadata": {
21
- "version": "6.0.0",
21
+ "version": "7.0.1",
22
22
  "license": "MIT",
23
23
  "description": "Bash grammar for tree-sitter",
24
24
  "authors": [