前のコンポーネントが自己終了している場合、構文の強調表示は正しくありません。 (下のスクリーンショットを参照してください。)
次のコードを*.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/>
などの自動終了コンポーネントに続いて、ハイライトは通常の動作に戻るはずです。
スクリーンショット
システム(以下の情報を入力してください):