@willbooster/tree-sitter-rust 3.0.1 → 3.0.2

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
@@ -423,9 +423,8 @@ module.exports = grammar({
423
423
  field('name', $._type_identifier),
424
424
  field('type_parameters', optional($.type_parameters)),
425
425
  choice(
426
- seq(optional($.where_clause), field('body', $.field_declaration_list)),
427
- seq(field('body', $.ordered_field_declaration_list), optional($.where_clause), ';'),
428
- ';'
426
+ seq(optional($.where_clause), choice(field('body', $.field_declaration_list), ';')),
427
+ seq(field('body', $.ordered_field_declaration_list), optional($.where_clause), ';')
429
428
  )
430
429
  ),
431
430
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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": "3.0.1",
25
+ "version": "3.0.2",
26
26
  "license": "MIT",
27
27
  "description": "Rust grammar for tree-sitter",
28
28
  "authors": [