@willbooster/tree-sitter-javascript 8.0.1 → 8.0.2
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
|
@@ -53,7 +53,7 @@ const NAMED_RESERVED_WORDS = new Set(['this', 'super', 'true', 'false', 'null'])
|
|
|
53
53
|
|
|
54
54
|
// Words that are keywords only in some positions and identifiers elsewhere.
|
|
55
55
|
const MEMBER_MODIFIERS = ['get', 'set', 'static'];
|
|
56
|
-
const CONTEXTUAL_KEYWORDS = ['async', 'await', 'let', 'using'];
|
|
56
|
+
const CONTEXTUAL_KEYWORDS = ['async', 'await', 'let', 'of', 'using'];
|
|
57
57
|
|
|
58
58
|
// oxlint-disable-next-line unicorn/prefer-module -- This package is CommonJS, so tree-sitter loads grammar.js as CommonJS.
|
|
59
59
|
module.exports = grammar({
|
|
@@ -500,11 +500,14 @@ module.exports = grammar({
|
|
|
500
500
|
field('left', choice($.identifier, alias('of', $.identifier), $._destructuring_pattern)),
|
|
501
501
|
optional($._initializer)
|
|
502
502
|
),
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
'
|
|
507
|
-
|
|
503
|
+
prec.dynamic(
|
|
504
|
+
1,
|
|
505
|
+
seq(
|
|
506
|
+
field('kind', choice('let', 'const')),
|
|
507
|
+
field(
|
|
508
|
+
'left',
|
|
509
|
+
choice(reserved('lexical', $.identifier), alias('of', $.identifier), $._destructuring_pattern)
|
|
510
|
+
)
|
|
508
511
|
)
|
|
509
512
|
)
|
|
510
513
|
),
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|