@@ -31,7 +31,7 @@ module.exports = grammar({
31
31
] ,
32
32
33
33
reserved : {
34
- global : [
34
+ global : $ => [
35
35
'const' ,
36
36
'do' ,
37
37
'else' ,
@@ -45,7 +45,7 @@ module.exports = grammar({
45
45
'var' ,
46
46
'while' ,
47
47
] ,
48
- properties : [ ] ,
48
+ properties : $ => [ ] ,
49
49
} ,
50
50
51
51
supertypes : $ => [
@@ -550,7 +550,7 @@ module.exports = grammar({
550
550
$ . method_definition ,
551
551
alias (
552
552
choice ( $ . identifier , $ . _reserved_identifier ) ,
553
- $ . shorthand_property_identifier
553
+ $ . shorthand_property_identifier ,
554
554
) ,
555
555
) ) ) ,
556
556
'}' ,
@@ -564,7 +564,7 @@ module.exports = grammar({
564
564
$ . object_assignment_pattern ,
565
565
alias (
566
566
choice ( $ . identifier , $ . _reserved_identifier ) ,
567
- $ . shorthand_property_identifier_pattern
567
+ $ . shorthand_property_identifier_pattern ,
568
568
) ,
569
569
) ) ) ,
570
570
'}' ,
@@ -581,7 +581,7 @@ module.exports = grammar({
581
581
$ . _destructuring_pattern ,
582
582
alias (
583
583
choice ( $ . _reserved_identifier , $ . identifier ) ,
584
- $ . shorthand_property_identifier_pattern
584
+ $ . shorthand_property_identifier_pattern ,
585
585
) ,
586
586
) ) ,
587
587
'=' ,
@@ -1217,15 +1217,15 @@ module.exports = grammar({
1217
1217
field ( 'value' , choice ( $ . pattern , $ . assignment_pattern ) ) ,
1218
1218
) ,
1219
1219
1220
- _property_name : $ => reserved ( [ ] , choice (
1220
+ _property_name : $ => reserved ( 'properties' , choice (
1221
1221
alias ( choice (
1222
1222
$ . identifier ,
1223
- $ . _reserved_identifier
1223
+ $ . _reserved_identifier ,
1224
1224
) , $ . property_identifier ) ,
1225
1225
$ . private_property_identifier ,
1226
1226
$ . string ,
1227
1227
$ . number ,
1228
- $ . computed_property_name
1228
+ $ . computed_property_name ,
1229
1229
) ) ,
1230
1230
1231
1231
computed_property_name : $ => seq (
0 commit comments