language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

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

Open dummdidumm opened this issue 1 year ago • 1 comments

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

dummdidumm avatar Sep 27 '24 21:09 dummdidumm

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

paoloricciuti avatar Sep 28 '24 06:09 paoloricciuti