@willbooster/tree-sitter-rust 1.1.10 → 1.1.11
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 +7 -8
- package/package.json +1 -1
- package/tree-sitter-rust.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -115,6 +115,7 @@ module.exports = grammar({
|
|
|
115
115
|
$._inner_block_doc_comment_marker,
|
|
116
116
|
$._block_comment_content,
|
|
117
117
|
$._line_doc_content,
|
|
118
|
+
$._range_unary_endpoint_start,
|
|
118
119
|
$._error_sentinel,
|
|
119
120
|
],
|
|
120
121
|
|
|
@@ -892,14 +893,12 @@ module.exports = grammar({
|
|
|
892
893
|
),
|
|
893
894
|
|
|
894
895
|
range_expression: ($) =>
|
|
895
|
-
|
|
896
|
-
PREC.range,
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
'..'
|
|
902
|
-
)
|
|
896
|
+
choice(
|
|
897
|
+
prec.left(PREC.range, seq($._expression, choice('..', '...', '..='), $._expression)),
|
|
898
|
+
prec.left(PREC.range, seq($._expression, '..')),
|
|
899
|
+
prec.left(PREC.range, seq(choice('..', '..='), $._expression)),
|
|
900
|
+
prec.right(PREC.range + 1, seq(choice('..', '..='), $._range_unary_endpoint_start, $._expression)),
|
|
901
|
+
prec.left(PREC.range, '..')
|
|
903
902
|
),
|
|
904
903
|
|
|
905
904
|
unary_expression: ($) => prec(PREC.unary, seq(choice('-', '*', '!'), $._expression)),
|
package/package.json
CHANGED
package/tree-sitter-rust.wasm
CHANGED
|
Binary file
|