@willbooster/tree-sitter-javascript 1.0.12 → 1.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 +10 -3
- package/package.json +1 -1
- package/src/node-types.json +4 -0
- package/tree-sitter-javascript.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -1109,7 +1109,8 @@ module.exports = grammar({
|
|
|
1109
1109
|
choice(
|
|
1110
1110
|
$.identifier,
|
|
1111
1111
|
alias($.decorator_member_expression, $.member_expression),
|
|
1112
|
-
alias($.decorator_call_expression, $.call_expression)
|
|
1112
|
+
alias($.decorator_call_expression, $.call_expression),
|
|
1113
|
+
$.parenthesized_expression
|
|
1113
1114
|
)
|
|
1114
1115
|
),
|
|
1115
1116
|
|
|
@@ -1119,7 +1120,10 @@ module.exports = grammar({
|
|
|
1119
1120
|
seq(
|
|
1120
1121
|
field('object', choice($.identifier, alias($.decorator_member_expression, $.member_expression))),
|
|
1121
1122
|
'.',
|
|
1122
|
-
field(
|
|
1123
|
+
field(
|
|
1124
|
+
'property',
|
|
1125
|
+
choice(reserved('properties', alias($.identifier, $.property_identifier)), $.private_property_identifier)
|
|
1126
|
+
)
|
|
1123
1127
|
)
|
|
1124
1128
|
),
|
|
1125
1129
|
|
|
@@ -1127,7 +1131,10 @@ module.exports = grammar({
|
|
|
1127
1131
|
prec(
|
|
1128
1132
|
'call',
|
|
1129
1133
|
seq(
|
|
1130
|
-
field(
|
|
1134
|
+
field(
|
|
1135
|
+
'function',
|
|
1136
|
+
choice($.identifier, alias($.decorator_member_expression, $.member_expression), $.parenthesized_expression)
|
|
1137
|
+
),
|
|
1131
1138
|
field('arguments', $.arguments)
|
|
1132
1139
|
)
|
|
1133
1140
|
),
|
package/package.json
CHANGED
package/src/node-types.json
CHANGED
|
Binary file
|