mirror of
https://github.com/posva/vim-vue.git
synced 2025-12-08 18:34:45 +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:
@@ -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