mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-10 19:31:51 +08:00
@@ -25,7 +25,7 @@ if !exists("s:syntaxes")
|
|||||||
return syntaxes
|
return syntaxes
|
||||||
endfunction
|
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
|
endif
|
||||||
|
|
||||||
|
|
||||||
@@ -67,6 +67,12 @@ if s:syntaxes.sass
|
|||||||
syntax region sass keepend start=/<style\( \+scoped\)\? lang="[^"]*sass[^"]*"\( \+scoped\)\?>/ end="</style>" contains=@sass fold
|
syntax region sass keepend start=/<style\( \+scoped\)\? lang="[^"]*sass[^"]*"\( \+scoped\)\?>/ end="</style>" contains=@sass fold
|
||||||
endif
|
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
|
if s:syntaxes.less
|
||||||
syntax include @less syntax/less.vim
|
syntax include @less syntax/less.vim
|
||||||
unlet b:current_syntax
|
unlet b:current_syntax
|
||||||
|
|||||||
Reference in New Issue
Block a user