Skip to content

Commit

Permalink
fix: only allow automatic_semicolons after static
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Apr 20, 2024
1 parent aa08ce3 commit fff4560
Show file tree
Hide file tree
Showing 3 changed files with 5,293 additions and 5,295 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ module.exports = grammar({

class_static_block: $ => seq(
'static',
optional($._semicolon),
optional($._automatic_semicolon),
field('body', $.statement_block),
),

Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fff4560

Please sign in to comment.