@willbooster/tree-sitter-ruby 3.0.1 → 3.0.3

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
@@ -1556,7 +1556,14 @@ module.exports = grammar({
1556
1556
  instance_variable: () => token(seq('@', ALPHA_CHAR, IDENTIFIER_CHARS)),
1557
1557
  class_variable: () => token(seq('@@', ALPHA_CHAR, IDENTIFIER_CHARS)),
1558
1558
 
1559
- global_variable: () => /\$(-[a-zA-Z0-9_]|[!@&`'+~=/\\,;.<>*$?:"]|[0-9]+|[a-zA-Z_][a-zA-Z0-9_]*)/,
1559
+ global_variable: () =>
1560
+ token(
1561
+ choice(
1562
+ /\$(-[a-zA-Z0-9_]|[!@&`'+~=/\\,;.<>*$?:"]|[0-9]+)/,
1563
+ seq('$-', /[^\u0000-\u007F]/),
1564
+ seq('$', ALPHA_CHAR, IDENTIFIER_CHARS)
1565
+ )
1566
+ ),
1560
1567
 
1561
1568
  chained_string: ($) => seq($.string, repeat1($.string)),
1562
1569
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-ruby",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
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.1",
22
+ "version": "3.0.3",
23
23
  "license": "MIT",
24
24
  "description": "Ruby grammar for tree-sitter",
25
25
  "authors": [