mirror of https://github.com/sveltejs/svelte
fix: require whitespace after `@const` tag (#11379)
parent
eb7e32c168
commit
0397fcb614
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: require whitespace after `@const` tag
|
@ -0,0 +1,9 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
error: {
|
||||
code: 'expected_whitespace',
|
||||
message: 'Expected whitespace',
|
||||
position: [19, 19]
|
||||
}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
{#if true}
|
||||
{@constfoo = 'bar'}
|
||||
{/if}
|
Loading…
Reference in new issue