diff --git a/src/compiler/parse/state/mustache.ts b/src/compiler/parse/state/mustache.ts index a9dea41d03..5d9b133852 100644 --- a/src/compiler/parse/state/mustache.ts +++ b/src/compiler/parse/state/mustache.ts @@ -284,7 +284,9 @@ export default function mustache(parser: Parser) { block.context = read_context(parser); parser.allow_whitespace(); + } + if (type == 'EachBlock') { if (parser.eat(',')) { parser.allow_whitespace(); block.index = parser.read_identifier();