@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-rust",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
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": "1.7.0",
25
+ "version": "1.8.0",
26
26
  "license": "MIT",
27
27
  "description": "Rust grammar for tree-sitter",
28
28
  "authors": [