From 9d4a7ada4e1a16ef4cf3ee680507f4b83b9fbbbc Mon Sep 17 00:00:00 2001 From: yemai Date: Fri, 17 May 2019 14:59:47 +0800 Subject: [PATCH] feat: support less syntax from origin or vim-less --- syntax/vue.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/syntax/vue.vim b/syntax/vue.vim index 03f4285..08db989 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -19,6 +19,7 @@ function! s:LoadFullSyntax(group, type) exec 'syn include '.a:group.' syntax/'.a:type.'.vim' endfunction + " Load syntax/*.vim to syntax group if exists("g:vim_vue_plugin_load_full_syntax") \ && g:vim_vue_plugin_load_full_syntax == 1 @@ -48,6 +49,13 @@ endif if exists("g:vim_vue_plugin_use_less") \ && g:vim_vue_plugin_use_less == 1 call s:LoadFullSyntax('@LessSyntax', 'less') + syn clear cssDefinition + syn region lessDefinition + \ matchgroup=cssBraces + \ contains=@LessSyntax + \ start="{" + \ end="}" + endif let b:current_syntax = 'vue'