Skip to content

Commit 6b43c05

Browse files
committed
fix: allow semicolons in annotation_type_declaration
1 parent 3274a9e commit 6b43c05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

grammar.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,13 +1020,15 @@ module.exports = grammar({
10201020
),
10211021

10221022
annotation_type_body: $ => seq(
1023-
'{', repeat(choice(
1023+
'{',
1024+
repeat(choice(
10241025
$.annotation_type_element_declaration,
10251026
$.constant_declaration,
10261027
$.class_declaration,
10271028
$.interface_declaration,
10281029
$.enum_declaration,
1029-
$.annotation_type_declaration
1030+
$.annotation_type_declaration,
1031+
';',
10301032
)),
10311033
'}'
10321034
),

0 commit comments

Comments
 (0)