require whitespace after `{@html` (#2154)

pull/2168/head
Conduitry 6 years ago
parent 27ec345f31
commit bee6fe7ebc

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