@willbooster/tree-sitter-rust 1.9.0 → 1.9.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/grammar.js CHANGED
@@ -789,7 +789,11 @@ module.exports = grammar({
789
789
  seq(
790
790
  field(
791
791
  'type',
792
- choice($._type_identifier, alias(choice(...primitiveTypes), $.type_identifier), $.scoped_identifier)
792
+ choice(
793
+ $._type_identifier,
794
+ alias(choice(...primitiveTypes, ...reservedIdentifiers), $.type_identifier),
795
+ $.scoped_identifier
796
+ )
793
797
  ),
794
798
  '::',
795
799
  field('type_arguments', $.type_arguments)
@@ -1299,7 +1303,7 @@ module.exports = grammar({
1299
1303
  'type',
1300
1304
  choice(
1301
1305
  $._type_identifier,
1302
- alias(choice(...primitiveTypes), $.type_identifier),
1306
+ alias(choice(...primitiveTypes, ...reservedIdentifiers), $.type_identifier),
1303
1307
  $.scoped_type_identifier,
1304
1308
  alias($._generic_struct_pattern_type, $.generic_type)
1305
1309
  )
@@ -1314,7 +1318,11 @@ module.exports = grammar({
1314
1318
  seq(
1315
1319
  field(
1316
1320
  'type',
1317
- choice($._type_identifier, alias(choice(...primitiveTypes), $.type_identifier), $.scoped_type_identifier)
1321
+ choice(
1322
+ $._type_identifier,
1323
+ alias(choice(...primitiveTypes, ...reservedIdentifiers), $.type_identifier),
1324
+ $.scoped_type_identifier
1325
+ )
1318
1326
  ),
1319
1327
  '::',
1320
1328
  field('type_arguments', $.type_arguments)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Rust grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -22,7 +22,7 @@
22
22
  }
23
23
  ],
24
24
  "metadata": {
25
- "version": "1.9.0",
25
+ "version": "1.9.1",
26
26
  "license": "MIT",
27
27
  "description": "Rust grammar for tree-sitter",
28
28
  "authors": [