@willbooster/tree-sitter-ruby 2.0.3 → 2.0.4

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
@@ -12,7 +12,7 @@ Ruby grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), fork
12
12
  [tree-sitter/tree-sitter-ruby](https://github.com/tree-sitter/tree-sitter-ruby). We are grateful
13
13
  to its authors and contributors. This is not an official release of that project.
14
14
 
15
- This fork ships upstream's grammar with a parser generated by
15
+ This fork extends the upstream grammar to parse anonymous block forwarding and spaced block arguments, with a parser generated by
16
16
  [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter), whose compact parse tables make the
17
17
  parser smaller. The parser carries that fork's own ABI number (`0x57420001`), so it loads only with the WillBooster
18
18
  runtime; upstream's tree-sitter runtime rejects it. Use runtime 2.0.18 or later so contiguous included ranges do not terminate comments.
package/grammar.js CHANGED
@@ -69,6 +69,7 @@ module.exports = grammar({
69
69
  $._unary_minus_num,
70
70
  $._binary_minus,
71
71
  $._binary_star,
72
+ $._bitwise_and,
72
73
  $._singleton_class_left_angle_left_langle,
73
74
  $.hash_key_symbol,
74
75
  $._identifier_suffix,
@@ -792,7 +793,7 @@ module.exports = grammar({
792
793
  [prec.left, PREC.BOOLEAN_AND, '&&'],
793
794
  [prec.left, PREC.SHIFT, choice('<<', '>>')],
794
795
  [prec.left, PREC.COMPARISON, choice('<', '<=', '>', '>=')],
795
- [prec.left, PREC.BITWISE_AND, '&'],
796
+ [prec.left, PREC.BITWISE_AND, alias($._bitwise_and, '&')],
796
797
  [prec.left, PREC.BITWISE_OR, choice('^', '|')],
797
798
  [prec.left, PREC.ADDITIVE, choice('+', alias($._binary_minus, '-'))],
798
799
  [prec.left, PREC.MULTIPLICATIVE, choice('/', '%', alias($._binary_star, '*'))],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-ruby",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Ruby grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -46,21 +46,21 @@
46
46
  "@vitest/browser-playwright": "5.0.3",
47
47
  "@willbooster/oxfmt-config": "1.2.2",
48
48
  "@willbooster/oxlint-config": "1.4.8",
49
- "@willbooster/wb": "22.24.0",
50
- "@willbooster/web-tree-sitter": "2.0.18",
51
- "conventional-changelog-conventionalcommits": "10.4.0",
52
- "lefthook": "2.1.16",
53
- "oxfmt": "0.71.0",
54
- "oxlint": "1.86.0",
55
- "oxlint-tsgolint": "7.0.2003",
56
- "playwright": "1.63.0",
49
+ "@willbooster/wb": "22.26.1",
50
+ "@willbooster/web-tree-sitter": "2.0.24",
51
+ "conventional-changelog-conventionalcommits": "10.4.1",
52
+ "lefthook": "2.2.1",
53
+ "oxfmt": "0.72.0",
54
+ "oxlint": "1.87.0",
55
+ "oxlint-tsgolint": "7.0.2004",
56
+ "playwright": "1.64.0",
57
57
  "semantic-release": "25.0.9",
58
58
  "sort-package-json": "4.0.0",
59
- "tree-sitter-cli": "0.27.0",
59
+ "tree-sitter-cli": "0.27.1",
60
60
  "typescript": "7.0.2",
61
- "vite": "8.3.2",
61
+ "vite": "8.3.4",
62
62
  "vitest": "5.0.3",
63
- "wrangler": "4.147.0"
63
+ "wrangler": "4.149.0"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@willbooster/web-tree-sitter": "^2.0.18"
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "2.0.3",
22
+ "version": "2.0.4",
23
23
  "license": "MIT",
24
24
  "description": "Ruby grammar for tree-sitter",
25
25
  "authors": [