Merge pull request #2168 from sveltejs/gh-2154

require whitespace after `{@html`
pull/2188/head
Rich Harris 6 years ago committed by GitHub
commit 713eb158ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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