Don't parse index and key for with block

pull/4601/head
Timothy Johnson 6 years ago
parent f2c2ca0a2a
commit 287a7c4abd

@ -284,7 +284,9 @@ export default function mustache(parser: Parser) {
block.context = read_context(parser); block.context = read_context(parser);
parser.allow_whitespace(); parser.allow_whitespace();
}
if (type == 'EachBlock') {
if (parser.eat(',')) { if (parser.eat(',')) {
parser.allow_whitespace(); parser.allow_whitespace();
block.index = parser.read_identifier(); block.index = parser.read_identifier();

Loading…
Cancel
Save