@willbooster/tree-sitter-ruby 2.0.9 → 2.0.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 +2 -13
- package/package.json +1 -1
- package/tree-sitter-ruby.wasm +0 -0
- package/tree-sitter.json +1 -1
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
package/tree-sitter-ruby.wasm
CHANGED
|
Binary file
|