mirror of https://github.com/sveltejs/svelte
parent
fb1961065e
commit
6562fd5187
@ -1,4 +1,4 @@
|
||||
{#await true}
|
||||
{#each foo as bar}
|
||||
{:catch f}
|
||||
{#each foo as bar}
|
||||
{:catch f}
|
||||
{/await}
|
@ -1,4 +1,4 @@
|
||||
{#if true}
|
||||
{#await p}
|
||||
{:else}
|
||||
{#await p}
|
||||
{:else}
|
||||
{/if}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"code": "unclosed-open-tag",
|
||||
"message": "Expect to close {#await} block before {:else} block",
|
||||
"start": { "line": 3, "column": 8, "character": 32 },
|
||||
"pos": 32
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
{#if true}
|
||||
{#await p}
|
||||
{:else}
|
||||
{/if}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"code": "invalid-else-placement",
|
||||
"message": "Cannot have an {:else} block outside an {#if ...} or {#each ...} block",
|
||||
"start": { "line": 2, "column": 6, "character": 11 },
|
||||
"pos": 11
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
<li>
|
||||
{:else}
|
@ -1,4 +1,4 @@
|
||||
{#if true}
|
||||
<li>
|
||||
{:else}
|
||||
<li>
|
||||
{:else}
|
||||
{/if}
|
@ -1,4 +1,4 @@
|
||||
{#if true}
|
||||
<p>
|
||||
{:else if false}
|
||||
<p>
|
||||
{:else if false}
|
||||
{/if}
|
@ -1,4 +1,4 @@
|
||||
{#if true}
|
||||
{#await foo}
|
||||
{:else if false}
|
||||
{#await foo}
|
||||
{:else if false}
|
||||
{/if}
|
@ -1,4 +1,4 @@
|
||||
{#await foo}
|
||||
{:then bar}
|
||||
{:else if}
|
||||
{:else if}
|
||||
{/await}
|
@ -1,4 +1,4 @@
|
||||
{#await true}
|
||||
<li>
|
||||
{:then f}
|
||||
<li>
|
||||
{:then f}
|
||||
{/await}
|
@ -1,19 +1,19 @@
|
||||
{#if true}
|
||||
<input >
|
||||
<input>
|
||||
{:else}
|
||||
{/if}
|
||||
|
||||
{#if true}
|
||||
<br >
|
||||
<br>
|
||||
{:else}
|
||||
{/if}
|
||||
|
||||
{#await true}
|
||||
<input >
|
||||
<input>
|
||||
{:then f}
|
||||
{/await}
|
||||
|
||||
{#await true}
|
||||
<br >
|
||||
<br>
|
||||
{:then f}
|
||||
{/await}
|
Loading…
Reference in new issue