Skip to content

Commit

Permalink
Don't parse index and key for with block
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Johnson committed Apr 30, 2020
1 parent 3414200 commit 07ce6b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/parse/state/mustache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 07ce6b0

Please sign in to comment.