@willbooster/tree-sitter-ruby 2.0.9 → 2.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
@@ -83,6 +83,7 @@ module.exports = grammar({
83
83
  $._element_reference_bracket,
84
84
  $._short_interpolation,
85
85
  $._line_comment,
86
+ $._block_comment,
86
87
  $._uninterpreted,
87
88
  $._not_parenthesized,
88
89
  ],
@@ -1530,19 +1531,7 @@ module.exports = grammar({
1530
1531
  undef: ($) => seq('undef', commaSep1($._method_name)),
1531
1532
  alias: ($) => seq('alias', field('name', $._method_name), field('alias', $._method_name)),
1532
1533
 
1533
- comment: ($) =>
1534
- choice(
1535
- $._line_comment,
1536
- token(
1537
- prec(
1538
- PREC.COMMENT,
1539
- choice(
1540
- seq('#', /.*/),
1541
- seq(/=begin.*\r?\n/, repeat(choice(/[^=]/, /=[^e]/, /=e[^n]/, /=en[^d]/)), /[\s*]*=end.*/)
1542
- )
1543
- )
1544
- )
1545
- ),
1534
+ comment: ($) => choice($._line_comment, $._block_comment, token(prec(PREC.COMMENT, seq('#', /.*/)))),
1546
1535
 
1547
1536
  integer: () => /0[bB][01](_?[01])*|0[oO]?[0-7](_?[0-7])*|(0[dD])?\d(_?\d)*|0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,
1548
1537
  _int_or_float: ($) => choice($.integer, $.float),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-ruby",
3
- "version": "2.0.9",
3
+ "version": "2.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": "2.0.9",
22
+ "version": "2.0.10",
23
23
  "license": "MIT",
24
24
  "description": "Ruby grammar for tree-sitter",
25
25
  "authors": [