Use terminal rule
@@ -64,12 +64,12 @@ module.exports = grammar({
_declarations: $ => prec.right(choice(
seq(
'{',
- repeat(seq($._declaration, choice(';', $._layout_semicolon))),
+ repeat(seq($._declaration, choice($._terminal, $._layout_semicolon))),
'}'
),
seq(
$._layout_open_brace,
- repeat(seq($._declaration, choice(';', $._layout_semicolon))),
+ repeat(seq($._declaration, choice($._terminal, $._layout_semicolon))),
$._layout_close_brace
)
)),
