@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 +11 -3
- package/package.json +1 -1
- package/tree-sitter-rust.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -789,7 +789,11 @@ module.exports = grammar({
|
|
|
789
789
|
seq(
|
|
790
790
|
field(
|
|
791
791
|
'type',
|
|
792
|
-
choice(
|
|
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(
|
|
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
package/tree-sitter-rust.wasm
CHANGED
|
Binary file
|