@willbooster/tree-sitter-rust 3.1.5 → 3.1.6

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
@@ -1426,11 +1426,23 @@ module.exports = grammar({
1426
1426
  field_pattern: ($) =>
1427
1427
  seq(
1428
1428
  repeat($.attribute_item),
1429
- optional('ref'),
1430
- optional($.mutable_specifier),
1431
1429
  choice(
1432
- field('name', alias($.identifier, sym('shorthand_field_identifier'))),
1433
- seq(field('name', $._field_identifier), ':', field('pattern', $._pattern))
1430
+ seq(
1431
+ optional('ref'),
1432
+ optional($.mutable_specifier),
1433
+ choice(
1434
+ field('name', alias($.identifier, sym('shorthand_field_identifier'))),
1435
+ seq(field('name', $._field_identifier), ':', field('pattern', $._pattern))
1436
+ )
1437
+ ),
1438
+ seq(
1439
+ field(
1440
+ 'name',
1441
+ alias(/([0-9][0-9_]*|0b_*[01][01_]*|0o_*[0-7][0-7_]*|0x_*[0-9a-fA-F][0-9a-fA-F_]*)/, $.integer_literal)
1442
+ ),
1443
+ ':',
1444
+ field('pattern', $._pattern)
1445
+ )
1434
1446
  )
1435
1447
  ),
1436
1448
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "Rust grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -2018,6 +2018,10 @@
2018
2018
  "type": "field_identifier",
2019
2019
  "named": true
2020
2020
  },
2021
+ {
2022
+ "type": "integer_literal",
2023
+ "named": true
2024
+ },
2021
2025
  {
2022
2026
  "type": "shorthand_field_identifier",
2023
2027
  "named": true
Binary file
package/tree-sitter.json CHANGED
@@ -25,7 +25,7 @@
25
25
  }
26
26
  ],
27
27
  "metadata": {
28
- "version": "3.1.5",
28
+ "version": "3.1.6",
29
29
  "license": "MIT",
30
30
  "description": "Rust grammar for tree-sitter",
31
31
  "authors": [