sveltejs / svelte-atom

Syntax, diagnostics, and other smarts for Svelte in Atom
MIT License
30 stars 11 forks source link

Syntax highlighting broken for Svelte 3 #8

Closed johannesmutter closed 2 years ago

johannesmutter commented 4 years ago

In Svelte 3 syntax highlighting doesn’t work properly:

Bildschirmfoto 2020-04-02 um 17 14 27
the0neWhoKnocks commented 2 years ago

Adding to the original post, these items break the syntax coloring:

Things still compile correctly, but it's quite disappointing to have to choose between using newer supported features or using long-hand syntax to maintain highlighting consistency.

svelte-broken-syntax-highlighting

the0neWhoKnocks commented 2 years ago

@johannesmutter Perhaps you should update the title of this ticket to "Syntax highlighting broken for Svelte 3" so that it's more easily discoverable.

rixo commented 2 years ago

A new version of the package has just been released with a major update of Language Server, and a brand new grammar ported from the VSCode extension one.

These changes should solve the problems mentioned in this thread. The grammar is still freshly backed and might have some defect, so you're very welcome to open other issues if you encounter new problems.