Set a variable indicating vue syntax

This commit is contained in:
leafOfTree
2019-09-10 17:55:49 +08:00
parent 1345c64824
commit a0f26edbaa

View File

@@ -11,6 +11,8 @@ if exists("b:current_syntax") && b:current_syntax == 'vue'
finish
endif
" For advanced users, this variable can be used to avoid overload
let b:current_main_syntax = 'vue'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" Config {{{
@@ -64,10 +66,6 @@ function! s:SetCurrentSyntax(type)
if a:type == 'coffee'
syntax cluster coffeeJS contains=@htmlJavaScript
let b:current_syntax = 'vue'
elseif a:type == 'less' || a:type == 'sass'
" For advanced user, this variable can be used to avoid overload
let b:current_main_syntax = 'vue'
unlet! b:current_syntax
else
unlet! b:current_syntax
endif