mirror of https://github.com/sveltejs/svelte
chore: stricter control flow syntax validation in runes mode (#12342)
disallow characters between `{` and `#` / `:` / `@` in runes mode closes #11975pull/12353/head
parent
76ddfb3d45
commit
14cbb65d85
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore: stricter control flow syntax validation in runes mode
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
@ -0,0 +1,8 @@
|
|||||||
|
<svelte:options runes={false} />
|
||||||
|
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
<div>
|
||||||
|
{ #if true}
|
||||||
|
<p>hi</p>
|
||||||
|
{/if}
|
||||||
|
</div>
|
@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "block_unexpected_character",
|
||||||
|
"message": "Expected a `#` character immediately following the opening bracket",
|
||||||
|
"start": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 1
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,8 @@
|
|||||||
|
<svelte:options runes={true} />
|
||||||
|
|
||||||
|
<!-- prettier-ignore -->
|
||||||
|
<div>
|
||||||
|
{ #if true}
|
||||||
|
<p>hi</p>
|
||||||
|
{/if}
|
||||||
|
</div>
|
Loading…
Reference in new issue