@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 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('property', alias($.identifier, $.property_identifier))
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('function', choice($.identifier, alias($.decorator_member_expression, $.member_expression))),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "JavaScript grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -1021,6 +1021,10 @@
1021
1021
  {
1022
1022
  "type": "member_expression",
1023
1023
  "named": true
1024
+ },
1025
+ {
1026
+ "type": "parenthesized_expression",
1027
+ "named": true
1024
1028
  }
1025
1029
  ]
1026
1030
  }
Binary file
package/tree-sitter.json CHANGED
@@ -16,7 +16,7 @@
16
16
  }
17
17
  ],
18
18
  "metadata": {
19
- "version": "1.0.12",
19
+ "version": "1.0.13",
20
20
  "license": "MIT",
21
21
  "description": "JavaScript grammar for tree-sitter",
22
22
  "authors": [