@willbooster/tree-sitter-rust 1.1.8 → 1.1.10

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
@@ -93,6 +93,7 @@ const TOKEN_TREE_NON_SPECIAL_PUNCTUATION = [
93
93
  '=>',
94
94
  '#',
95
95
  '?',
96
+ '~',
96
97
  ];
97
98
 
98
99
  const primitiveTypes = [...numericTypes, 'bool', 'str', 'char'];
@@ -923,7 +924,7 @@ module.exports = grammar({
923
924
  [PREC.bitand, '&'],
924
925
  [PREC.bitor, '|'],
925
926
  [PREC.bitxor, '^'],
926
- [PREC.comparative, choice('==', '!=', '<', '<=', '>', '>=')],
927
+ [PREC.comparative, choice('==', '!=', '<', token(prec(2, '<=')), '>', '>=')],
927
928
  [PREC.shift, choice('<<', '>>')],
928
929
  [PREC.additive, choice('+', '-')],
929
930
  [PREC.multiplicative, choice('*', '/', '%')],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Rust grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -5698,5 +5698,9 @@
5698
5698
  {
5699
5699
  "type": "}",
5700
5700
  "named": false
5701
+ },
5702
+ {
5703
+ "type": "~",
5704
+ "named": false
5701
5705
  }
5702
5706
  ]
Binary file
package/tree-sitter.json CHANGED
@@ -22,7 +22,7 @@
22
22
  }
23
23
  ],
24
24
  "metadata": {
25
- "version": "1.1.8",
25
+ "version": "1.1.10",
26
26
  "license": "MIT",
27
27
  "description": "Rust grammar for tree-sitter",
28
28
  "authors": [