@willbooster/tree-sitter-rust 1.7.0 → 1.8.0
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 +4 -0
- package/package.json +1 -1
- package/tree-sitter-rust.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -152,6 +152,8 @@ module.exports = grammar({
|
|
|
152
152
|
[$.visibility_modifier],
|
|
153
153
|
[$.visibility_modifier, $.scoped_identifier, $.scoped_type_identifier],
|
|
154
154
|
[$.foreign_mod_item, $.function_modifiers],
|
|
155
|
+
[$.function_modifiers, $.impl_item, $.trait_item],
|
|
156
|
+
[$.function_modifiers, $.trait_item],
|
|
155
157
|
],
|
|
156
158
|
|
|
157
159
|
word: ($) => $.identifier,
|
|
@@ -520,6 +522,7 @@ module.exports = grammar({
|
|
|
520
522
|
|
|
521
523
|
impl_item: ($) =>
|
|
522
524
|
seq(
|
|
525
|
+
optional('const'),
|
|
523
526
|
optional('unsafe'),
|
|
524
527
|
'impl',
|
|
525
528
|
field('type_parameters', optional($.type_parameters)),
|
|
@@ -538,6 +541,7 @@ module.exports = grammar({
|
|
|
538
541
|
trait_item: ($) =>
|
|
539
542
|
seq(
|
|
540
543
|
optional($.visibility_modifier),
|
|
544
|
+
optional('const'),
|
|
541
545
|
optional('unsafe'),
|
|
542
546
|
'trait',
|
|
543
547
|
field('name', $._type_identifier),
|
package/package.json
CHANGED
package/tree-sitter-rust.wasm
CHANGED
|
Binary file
|