add SCSS support

This commit is contained in:
David Wong
2016-04-19 23:48:44 +08:00
parent 9f8c3b53f3
commit 40ff244060

View File

@@ -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