corneliusio / svelte-sublime

💡Sublime Text syntax highlighting for Svelte components
MIT License
58 stars 6 forks source link

Support lang="ts" #11

Closed nickhstr closed 4 years ago

nickhstr commented 4 years ago

With much of the Svelte docs suggesting the lang="ts" script attribute, it'd be great to have that added to script-lang-decider.

corneliusio commented 4 years ago

Ha, knew this would come back to haunt me. Actually opened an issue about it a little over a year ago to get some direction, but there was never anything explicitly landed on and, at the time, most examples used the [type] attribute.

Does sound like [lang] should be added though.

corneliusio commented 4 years ago

Support added in the current release—you can now either use type="text/ts" or lang="ts". Package Control may take a bit to update but the update should be available in the next day or so.

nickhstr commented 4 years ago

That's great, thank you for the update!