@willbooster/tree-sitter-rust 3.1.6 → 3.1.7

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
@@ -1301,7 +1301,11 @@ module.exports = grammar({
1301
1301
  ),
1302
1302
 
1303
1303
  closure_parameters: ($) =>
1304
- seq('|', optional(seq(sepBy1(',', choice($._pattern, $.parameter)), optional(','))), '|'),
1304
+ seq(
1305
+ '|',
1306
+ optional(seq(sepBy1(',', seq(repeat($.attribute_item), choice($._pattern, $.parameter))), optional(','))),
1307
+ '|'
1308
+ ),
1305
1309
 
1306
1310
  label: ($) => seq("'", $.identifier),
1307
1311
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "Rust grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -1336,6 +1336,10 @@
1336
1336
  "type": "_pattern",
1337
1337
  "named": true
1338
1338
  },
1339
+ {
1340
+ "type": "attribute_item",
1341
+ "named": true
1342
+ },
1339
1343
  {
1340
1344
  "type": "parameter",
1341
1345
  "named": true
Binary file
package/tree-sitter.json CHANGED
@@ -25,7 +25,7 @@
25
25
  }
26
26
  ],
27
27
  "metadata": {
28
- "version": "3.1.6",
28
+ "version": "3.1.7",
29
29
  "license": "MIT",
30
30
  "description": "Rust grammar for tree-sitter",
31
31
  "authors": [