diff --git a/src/parse/state/mustache.ts b/src/parse/state/mustache.ts index 1acae36c9c..48a467a5c1 100644 --- a/src/parse/state/mustache.ts +++ b/src/parse/state/mustache.ts @@ -36,7 +36,7 @@ export default function mustache(parser: Parser) { parser.allow_whitespace(); - // {/if} or {/each} + // {/if}, {/each} or {/await} if (parser.eat('/')) { let block = parser.current(); let expected; @@ -287,13 +287,6 @@ export default function mustache(parser: Parser) { parser.allow_whitespace(); parser.eat(')', true); parser.allow_whitespace(); - } else if (parser.eat('@')) { - block.key = parser.read_identifier(); - if (!block.key) parser.error({ - code: `expected-name`, - message: `Expected name` - }); - parser.allow_whitespace(); } }