Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sass/scss syntax highlighting looks strange compared to .sass/.scss files #13

Open
non25 opened this issue Jul 24, 2020 · 1 comment
Open

Comments

@non25
Copy link
Contributor

non25 commented Jul 24, 2020

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:
Bad

Here's how default looks:
Default

Here's how it should look imo:
Good

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)

@myarcana
Copy link

myarcana commented Mar 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants