sveltejs / svelte-atom

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

Replace old grammar with the one from VSCode #15

Closed rixo closed 2 years ago

rixo commented 2 years ago

I believe I was finally able to fix the VSCode TextMate grammar to work in Atom. The problems I identified were wildcards in lookbehind regexes, and idiomatic handling of injections selectors by Atom (I couldn't find any spec about them, or any mention in the TextMate manual, so AFAICT any implementation is idiomatic).

In retrospect, this is probably better than #12.