@willbooster/tree-sitter-ruby 2.0.11 → 2.0.13
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 -1
- package/package.json +1 -1
- package/tree-sitter-ruby.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -1826,7 +1826,8 @@ function conditionalExpression($, condition, branch = $._arg) {
|
|
|
1826
1826
|
function rangeExpression($, begin, allowBeginless, endValue = $._arg) {
|
|
1827
1827
|
const end = field('end', choice(endValue, alias($._range_sign, $.unary)));
|
|
1828
1828
|
const operator = field('operator', choice('..', '...'));
|
|
1829
|
-
|
|
1829
|
+
// `_no_line_break` never matches; it tells the scanner that the end may follow on the next line.
|
|
1830
|
+
const bounded = seq(field('begin', begin), operator, optional(choice(end, $._no_line_break)));
|
|
1830
1831
|
return prec.right(PREC.RANGE, allowBeginless ? choice(bounded, seq(operator, end)) : bounded);
|
|
1831
1832
|
}
|
|
1832
1833
|
|
package/package.json
CHANGED
package/tree-sitter-ruby.wasm
CHANGED
|
Binary file
|