@willbooster/tree-sitter-ruby 3.0.8 → 3.0.10

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
@@ -87,10 +87,10 @@ module.exports = grammar({
87
87
  $._uninterpreted,
88
88
  $._not_parenthesized,
89
89
  $._lambda_brace,
90
- $._heredoc_literal_resume,
90
+ $._heredoc_resume,
91
91
  ],
92
92
 
93
- extras: ($) => [$.comment, $.heredoc_body, $._heredoc_literal_resume, /\s/, /\\\r?\n/],
93
+ extras: ($) => [$.comment, $.heredoc_body, $._heredoc_resume, /\s/, /\\\r?\n/],
94
94
 
95
95
  word: ($) => $.identifier,
96
96
 
@@ -887,7 +887,8 @@ module.exports = grammar({
887
887
  )
888
888
  ),
889
889
 
890
- _receiver_command: ($) => seq($._call, field('arguments', alias($.command_argument_list, $.argument_list))),
890
+ _receiver_command: ($) =>
891
+ seq($._call, field('arguments', alias($._chained_command_argument_list, $.argument_list))),
891
892
 
892
893
  _chained_command: ($) =>
893
894
  seq($._chained_command_call, field('arguments', alias($._chained_command_argument_list, $.argument_list))),
@@ -896,9 +897,10 @@ module.exports = grammar({
896
897
  choice(
897
898
  commandCallWithBlock(
898
899
  $,
899
- choice($._call, field('method', choice($._variable, $._function_identifier, $.super))),
900
+ field('method', choice($._variable, $._function_identifier, $.super)),
900
901
  $.command_argument_list
901
902
  ),
903
+ commandCallWithBlock($, $._call, $._chained_command_argument_list),
902
904
  commandCallWithBlock($, $._chained_command_call, $._chained_command_argument_list)
903
905
  ),
904
906
 
@@ -998,7 +1000,10 @@ module.exports = grammar({
998
1000
  choice(field('method', choice($._variable, $._function_identifier, $.super)), $._call),
999
1001
  field('arguments', alias($._yield_argument_list, $.argument_list))
1000
1002
  ),
1001
- seq(field('method', $.super), field('arguments', alias($._yield_signed_argument_list, $.argument_list)))
1003
+ seq(
1004
+ choice(field('method', $.super), $._call),
1005
+ field('arguments', alias($._yield_signed_argument_list, $.argument_list))
1006
+ )
1002
1007
  ),
1003
1008
 
1004
1009
  _yield_signed_argument_list: ($) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-ruby",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "description": "Ruby grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "3.0.8",
22
+ "version": "3.0.10",
23
23
  "license": "MIT",
24
24
  "description": "Ruby grammar for tree-sitter",
25
25
  "authors": [