@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 +1 -3
- package/package.json +1 -1
- package/tree-sitter-rust.wasm +0 -0
- package/tree-sitter.json +1 -1
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
package/tree-sitter-rust.wasm
CHANGED
|
Binary file
|