mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-09 14:14:46 +08:00
Support less/sass to use emmet-vim 'css' type
This commit is contained in:
@@ -183,11 +183,15 @@ endif
|
|||||||
" Style
|
" Style
|
||||||
" Redefine syn-region to color <style> correctly.
|
" Redefine syn-region to color <style> correctly.
|
||||||
if s:use_less
|
if s:use_less
|
||||||
syntax region lessDefinition matchgroup=cssBraces contains=@LessSyntax contained
|
syntax clear lessDefinition
|
||||||
|
syntax region cssLessDefinition matchgroup=cssBraces contains=@LessSyntax
|
||||||
|
\ containedin=cssLessVueStyle
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
endif
|
endif
|
||||||
if s:use_sass
|
if s:use_sass
|
||||||
syntax region sassDefinition matchgroup=cssBraces contains=@SassSyntax contained
|
syntax clear sassDefinition
|
||||||
|
syntax region cssSassDefinition matchgroup=cssBraces contains=@SassSyntax
|
||||||
|
\ containedin=cssSassVueStyle,cssScssVueStyle
|
||||||
\ start="{" end="}"
|
\ start="{" end="}"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user