We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
static
1 parent 3487795 commit fc7624bCopy full SHA for fc7624b
grammar.js
@@ -101,6 +101,7 @@ module.exports = grammar({
101
[$.labeled_statement, $._property_name],
102
[$.computed_property_name, $.array],
103
[$.binary_expression, $._initializer],
104
+ [$.class_static_block, $._property_name],
105
],
106
107
word: $ => $.identifier,
@@ -1176,6 +1177,7 @@ module.exports = grammar({
1176
1177
1178
class_static_block: $ => seq(
1179
'static',
1180
+ optional($._semicolon),
1181
field('body', $.statement_block),
1182
),
1183
test/corpus/expressions.txt
@@ -534,7 +534,8 @@ class Foo extends require('another-class') {
534
super()
535
}
536
537
- static {
+ static
538
+ {
539
this.#foo = 'bar';
540
541
0 commit comments