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

postcss sss Sugars #24

Open
stephanedemotte opened this issue Aug 12, 2024 · 1 comment
Open

postcss sss Sugars #24

stephanedemotte opened this issue Aug 12, 2024 · 1 comment

Comments

@stephanedemotte
Copy link

Hello i try to use SugarSS https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md

How can i tell to the plugin to use sass syntax when <script lang="sss" > is used ?

Thank you !

@leafOfTree
Copy link
Owner

Hi there,
You can add a svelte syntax file svelte.vim with content

syntax region cssSassSvelteStyle fold
      \ start=+<style[^>]*lang="sss"[^>]*>+ 
      \ end=+</style>+ 
      \ keepend contains=@SassSyntax,svelteTag

The location is typically one of these:

  • ~/.vim/syntax/ (Unix-like systems)
  • $HOME/vimfiles/syntax/ (Windows)
  • ~/.config/nvim/syntax/ (Neovim)
image

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