diff --git a/grammar.js b/grammar.js index 63954fa..8229356 100644 --- a/grammar.js +++ b/grammar.js @@ -416,7 +416,9 @@ module.exports = grammar({ with_template_body: $ => prec.left( PREC.control, - seq($._indent, optional($.self_type), $._block, $._outdent), + choice( + seq($._indent, optional($.self_type), $._block, $._outdent), + seq("{", optional($._block), "}")), ), _extension_template_body: $ =>