Merge pull request #2168 from sveltejs/gh-2154

require whitespace after `{@html`
pull/7738/head
Rich Harris 7 years ago committed by GitHub
commit cbed153826

@ -316,6 +316,8 @@ export default function mustache(parser: Parser) {
}
} else if (parser.eat('@html')) {
// {@html content} tag
parser.requireWhitespace();
const expression = readExpression(parser);
parser.allowWhitespace();

@ -0,0 +1,10 @@
{
"code": "missing-whitespace",
"message": "Expected whitespace",
"start": {
"line": 1,
"column": 6,
"character": 6
},
"pos": 6
}
Loading…
Cancel
Save