@willbooster/tree-sitter-javascript 19.0.0 → 20.0.0

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
@@ -134,6 +134,7 @@ module.exports = grammar({
134
134
  sym('_class_heritage_end'),
135
135
  sym('_class_heritage_yield_identifier'),
136
136
  sym('_class_heritage_await_identifier'),
137
+ sym('_template_escape_sequence'),
137
138
  ],
138
139
 
139
140
  extras: ($) => [$.comment, sym('html_comment'), /[\s\p{Zs}\uFEFF\u2028\u2029\u2060\u200B]/u],
@@ -1873,7 +1874,7 @@ function templateString($, tagged) {
1873
1874
  repeat(
1874
1875
  choice(
1875
1876
  alias(sym('_template_chars'), sym('string_fragment')),
1876
- $.escape_sequence,
1877
+ tagged ? $.escape_sequence : alias(sym('_template_escape_sequence'), $.escape_sequence),
1877
1878
  ...(tagged ? [alias($._invalid_template_escape, $.escape_sequence)] : []),
1878
1879
  $.template_substitution
1879
1880
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "19.0.0",
3
+ "version": "20.0.0",
4
4
  "description": "JavaScript grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,8 @@
13
13
  ],
14
14
  "injection-regex": "^(js|javascript)$",
15
15
  "external-files": [
16
- "src/function_context.h"
16
+ "src/function_context.h",
17
+ "src/literal.h"
17
18
  ]
18
19
  },
19
20
  {
@@ -27,12 +28,13 @@
27
28
  "injection-regex": "^javascript-script$",
28
29
  "external-files": [
29
30
  "src/scanner.c",
30
- "src/function_context.h"
31
+ "src/function_context.h",
32
+ "src/literal.h"
31
33
  ]
32
34
  }
33
35
  ],
34
36
  "metadata": {
35
- "version": "19.0.0",
37
+ "version": "20.0.0",
36
38
  "license": "MIT",
37
39
  "description": "JavaScript grammar for tree-sitter",
38
40
  "authors": [