corneliusio / svelte-sublime

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

add new metascope for Svelte Components #15

Closed basaran closed 2 years ago

basaran commented 3 years ago

Add meta.tag.component.form.html to elements that start with capital letters, and also style tags.

image

image

corneliusio commented 2 years ago

@basaran Thanks! Will take a look ASAP and merge if everything looks good (which I'm assuming it will).

basaran commented 2 years ago

great, let me know if I can help with anything.

basaran commented 2 years ago

hello, what are the conflicts? I can send another PR.

corneliusio commented 2 years ago

@basaran Hey, sorry for letting this hang out for so long. I needed to have these changes made in Svelte.sublime-syntax.yaml-macros and then built with the YAML Macros plugin. I made a few adjustments, biggest being using meta.tag.component.any.html for the meta scope instead of meta.tag.component.form.html. But you should see the new meta scope on all the Svelte component tags now. Package should update automatically soon.

https://github.com/corneliusio/svelte-sublime/commit/16808be787bb2d879c819ee445cc1cbd8ce57a55