@willbooster/tree-sitter-rust 4.0.0 → 4.0.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
@@ -187,7 +187,6 @@ module.exports = grammar({
187
187
  [$.scoped_identifier, $.scoped_type_identifier],
188
188
  [$.parameters, $._pattern],
189
189
  [$.parameters, $.tuple_struct_pattern],
190
- [$.array_expression],
191
190
  [$.visibility_modifier],
192
191
  [$.visibility_modifier, $.scoped_identifier, $.scoped_type_identifier],
193
192
  [$.foreign_mod_item, $.function_modifiers],
@@ -1211,9 +1210,8 @@ module.exports = grammar({
1211
1210
  array_expression: ($) =>
1212
1211
  seq(
1213
1212
  '[',
1214
- repeat(prec(PREC.call, $.attribute_item)),
1215
1213
  choice(
1216
- seq($._expression, ';', field('length', $._expression)),
1214
+ seq(repeat(prec(PREC.call, $.attribute_item)), $._expression, ';', field('length', $._expression)),
1217
1215
  seq(sepBy(',', seq(repeat(prec(PREC.call, $.attribute_item)), $._expression)), optional(','))
1218
1216
  ),
1219
1217
  ']'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Rust grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -25,7 +25,7 @@
25
25
  }
26
26
  ],
27
27
  "metadata": {
28
- "version": "4.0.0",
28
+ "version": "4.0.1",
29
29
  "license": "MIT",
30
30
  "description": "Rust grammar for tree-sitter",
31
31
  "authors": [