mirror of https://github.com/sveltejs/svelte
Merge pull request #1158 from sveltejs/gh-1156
[WIP] Error on unclosed comments and blocks with no contentpull/1182/head
commit
b3049a6fa0
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"message": "comment was left open, expected -->",
|
||||||
|
"loc": {
|
||||||
|
"line": 1,
|
||||||
|
"column": 24
|
||||||
|
},
|
||||||
|
"pos": 24
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<!-- an unclosed comment
|
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
dev: true
|
||||||
|
};
|
@ -0,0 +1,10 @@
|
|||||||
|
{{#each things as thing}}
|
||||||
|
<span>this only exists...</span>
|
||||||
|
<span>...to increase test coverage</span>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#each things as thing}}{{soDoesThis}}{{/each}}
|
||||||
|
|
||||||
|
{{#each things as thing}}
|
||||||
|
andThis
|
||||||
|
{{/each}}
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
dev: true
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
{{#each things as thing}}
|
||||||
|
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#each things as thing}}{{/each}}
|
@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"message": "Empty block",
|
||||||
|
"loc": {
|
||||||
|
"line": 1,
|
||||||
|
"column": 0
|
||||||
|
},
|
||||||
|
"pos": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "Empty block",
|
||||||
|
"loc": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 0
|
||||||
|
},
|
||||||
|
"pos": 38
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,5 @@
|
|||||||
|
{{#each things as thing}}
|
||||||
|
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#each things as thing}}{{/each}}
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
Loading…
Reference in new issue