File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ module.exports = grammar({
64
64
[ $ . primary_expression , $ . statement_block , 'object' ] ,
65
65
[ $ . import_statement , $ . import ] ,
66
66
[ $ . export_statement , $ . primary_expression ] ,
67
+ [ $ . await_expression , $ . primary_expression ] ,
67
68
] ,
68
69
69
70
conflicts : $ => [
@@ -1143,6 +1144,7 @@ module.exports = grammar({
1143
1144
'get' ,
1144
1145
'set' ,
1145
1146
'async' ,
1147
+ 'await' ,
1146
1148
'static' ,
1147
1149
'export'
1148
1150
) ,
Original file line number Diff line number Diff line change @@ -319,6 +319,7 @@ Objects with reserved words for keys
319
319
set: function () {},
320
320
static: true,
321
321
async: true,
322
+ await: true,
322
323
};
323
324
324
325
---
@@ -340,6 +341,7 @@ Objects with reserved words for keys
340
341
(property_identifier)
341
342
(function (formal_parameters) (statement_block)))
342
343
(pair (property_identifier) (true))
344
+ (pair (property_identifier) (true))
343
345
(pair (property_identifier) (true)))))
344
346
345
347
============================================
@@ -422,6 +424,7 @@ Classes with reserved words as methods
422
424
class Foo {
423
425
catch() {}
424
426
finally() {}
427
+ await() {}
425
428
}
426
429
427
430
---
@@ -434,6 +437,10 @@ class Foo {
434
437
(property_identifier)
435
438
(formal_parameters)
436
439
(statement_block))
440
+ (method_definition
441
+ (property_identifier)
442
+ (formal_parameters)
443
+ (statement_block))
437
444
(method_definition
438
445
(property_identifier)
439
446
(formal_parameters)
You can’t perform that action at this time.
0 commit comments