feat: add svelte support#107
feat: add svelte support#107numToStr merged 1 commit intonumToStr:masterfrom mvllow:feat-add-svelte-ft
svelte support#107Conversation
What's the |
|
Treesitter displays that section as css. I noticed sometimes it works, eg. with: For example, with: 1 <style>
2 .main {
3 color: palevioletred;
4 }
5 </style>Visually selecting line 3 & 4, Here's the full playground screenshot: Edit: The playground looks identical in a vue project, which does comment correctly: |
|
You are surely hitting this #62 (comment) (Personally I hate this so much, but I also don't want any workaround either) |
|
That makes perfect sense, seeing how vue doesn't have extra indents inside a style tag. Thanks for that info! I'll mark this as ready to review to at least improve support for svelte (as far as html) but feel free to close if it's too half-baked |
naah, it's ok. HTML also have this issue. |


This fixes comments in svelte html context. Scripts seem to work already as well as line comments in css. However, block comments in css (inside a svelte file) do not use the correct commentstring.