์ด์ ๊ตฌ์ฑ ์์๊ฐ ์๋์ผ๋ก ๋ซํ ๋ ๊ตฌ๋ฌธ ๊ฐ์กฐ ํ์๊ฐ ์ฌ๋ฐ๋ฅด์ง ์์ต๋๋ค. (์๋ ์คํฌ๋ฆฐ์ท์ ์ฐธ์กฐํ์ญ์์ค.)
๋ค์ ์ฝ๋๋ฅผ *.svelte
ํ์ผ์ ๋ณต์ฌํ์ฌ ๋ณผ ์ ์์ต๋๋ค.
<SelfClosingComponent/>
<div>stuff</div> <!-- highlight problem with opening tag -->
<div>stuff</div> <!-- no highlight problem -->
<SelfClosingComponent/>
<meta/> <!-- highlight problem -->
<SelfClosingComponent/>
<div/> <!-- highlight problem, but also not valid html, so...??? -->
<SelfClosingComponent/>
<!-- <Intro/> --> <!-- highlight problem -->
<!-- <Intro/> --> <!-- returns to normal after problem -->
<SelfClosingComponent></SelfClosingComponent>
<div>stuff</div> <!-- no highlight problem when component has ending tag -->
์์๋๋ ํ๋
๊ฐ์กฐ ํ์๋ <SelfClosingComponent/>
์ ๊ฐ์ ์๋ ๋ซํ ๊ตฌ์ฑ ์์์ ๋ฐ๋ผ ์ ์ ๋์์ผ๋ก ๋์๊ฐ์ผ ํฉ๋๋ค.
์คํฌ๋ฆฐ์ท
์์คํ (๋ค์ ์ ๋ณด๋ฅผ ์์ฑํ์ญ์์ค):
๊ด๋ จ ๊ฐ๋ฅ์ฑ: https://github.com/sveltejs/language-tools/issues/299
๋ ๊ฐ๋จํ ์
<div/>
<div></div>
๋ซ๋ ๋ถ๋ถ ์์ ๊ณต๋ฐฑ์ด ์๋ ๊ฒฝ์ฐ์๋ง ๋ฐ์ํฉ๋๋ค.
์ฐํ! @dummdidumm ๊ฐ์ฌํฉ๋๋ค!