@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 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
- const bounded = seq(field('begin', begin), operator, optional(end));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-ruby",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
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.11",
22
+ "version": "2.0.13",
23
23
  "license": "MIT",
24
24
  "description": "Ruby grammar for tree-sitter",
25
25
  "authors": [