Skip to content

Commit 287a7c4

Browse files
author
Timothy Johnson
committed
Don't parse index and key for with block
1 parent f2c2ca0 commit 287a7c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/parse/state/mustache.ts

+2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ export default function mustache(parser: Parser) {
284284
block.context = read_context(parser);
285285

286286
parser.allow_whitespace();
287+
}
287288

289+
if (type == 'EachBlock') {
288290
if (parser.eat(',')) {
289291
parser.allow_whitespace();
290292
block.index = parser.read_identifier();

0 commit comments

Comments
 (0)