Added LESS support in the <style> tag.

Also, use `matchgroup=PreProc` to highlight the `<style>` tag, instead of applying the `less` syntax to it.
This commit is contained in:
David Bronke
2016-01-08 14:08:34 -06:00
parent f15e1d99ab
commit f35b872e7c

View File

@@ -35,4 +35,8 @@ syntax include @sass syntax/sass.vim
unlet b:current_syntax
syntax region sass keepend start=/<style\( \+scoped\)\? lang="sass"\( \+scoped\)\?>/ end="</style>" contains=@sass fold
syntax include @less syntax/less.vim
unlet b:current_syntax
syntax region less keepend matchgroup=PreProc start=/<style\%( \+scoped\)\? lang="less"\%( \+scoped\)\?>/ end="</style>" contains=@less fold
let b:current_syntax = "vue"