vim-svelte
vim-svelte copied to clipboard
sass/scss syntax highlighting looks strange compared to .sass/.scss files
Hi. Thanks for the plugin.
I've enabled sass/scss syntax in .svelte files by using: let g:svelte_preprocessors = ['scss', 'sass']
and it looks strange.
It breaks highlighting for <>
in style tag, and breaks highlighting for css properties.
Here's how it looks:
Here's how default looks:
Here's how it should look imo:
I tried to debug and disabled all of my configs and plugins except this,
Plug 'pangloss/vim-javascript'
Plug 'evanleck/vim-svelte'
but it didn't help
Vim version 8.2 (2019 Dec 12, compiled Jun 21 2020 16:11:23) (Arch Linux)
Mine has even less highlighting than yours.
Treesitter considers everything inside of <style lang="scss">
to be one single raw_text
node, which receives no syntax highlighting at all.