Remove v1 each key parsing

pull/2664/head
Emil Tholin 6 years ago committed by Conduitry
parent 3b244a6fde
commit b0447bf41e

@ -36,7 +36,7 @@ export default function mustache(parser: Parser) {
parser.allow_whitespace(); parser.allow_whitespace();
// {/if} or {/each} // {/if}, {/each} or {/await}
if (parser.eat('/')) { if (parser.eat('/')) {
let block = parser.current(); let block = parser.current();
let expected; let expected;
@ -287,13 +287,6 @@ export default function mustache(parser: Parser) {
parser.allow_whitespace(); parser.allow_whitespace();
parser.eat(')', true); parser.eat(')', true);
parser.allow_whitespace(); 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();
} }
} }

Loading…
Cancel
Save