mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-09 02:44:45 +08:00
add SCSS support
This commit is contained in:
@@ -25,7 +25,7 @@ if !exists("s:syntaxes")
|
||||
return syntaxes
|
||||
endfunction
|
||||
|
||||
let s:syntaxes = s:search_syntaxes('pug', 'coffee', 'stylus', 'sass', 'less')
|
||||
let s:syntaxes = s:search_syntaxes('pug', 'coffee', 'stylus', 'sass', 'scss', 'less')
|
||||
endif
|
||||
|
||||
|
||||
@@ -67,6 +67,12 @@ if s:syntaxes.sass
|
||||
syntax region sass keepend start=/<style\( \+scoped\)\? lang="[^"]*sass[^"]*"\( \+scoped\)\?>/ end="</style>" contains=@sass fold
|
||||
endif
|
||||
|
||||
if s:syntaxes.scss
|
||||
syntax include @scss syntax/scss.vim
|
||||
unlet b:current_syntax
|
||||
syntax region scss keepend start=/<style\( \+scoped\)\? lang="[^"]*scss[^"]*"\( \+scoped\)\?>/ end="</style>" contains=@scss fold
|
||||
endif
|
||||
|
||||
if s:syntaxes.less
|
||||
syntax include @less syntax/less.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
Reference in New Issue
Block a user