sveltejs / language-tools

The Svelte Language Server, and official extensions which use it
MIT License
1.25k stars 200 forks source link

Svelte 5: properly highlight `<component.dot.notation />` #2525

Closed dummdidumm closed 4 days ago

dummdidumm commented 1 month ago

Description

In Svelte 5 tags with a dot in it are counted as components. They should be highlighted as such from our textmate grammar.

Proposed solution

adjust grammar

Alternatives

No response

Additional Information, eg. Screenshots

No response

paoloricciuti commented 1 month ago

Uh this also reminded me: if you rename the symbol the component with dot notation is also left untouched.

{#each components as component}
    <component.default />
{/each}

If I rename component component.default is not renamed, I don't know if fixing the grammar will also fix this