mirror of
https://github.com/posva/vim-vue.git
synced 2026-10-08 05:05:03 +08:00
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:
1 parent
f15e1d99ab
commit
f35b872e7c
1 file changed
+4
@@ -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"
|
||||
Reference in new issue
Block a user