mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
Set a variable indicating vue syntax
This commit is contained in:
@@ -11,6 +11,8 @@ if exists("b:current_syntax") && b:current_syntax == 'vue'
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" For advanced users, this variable can be used to avoid overload
|
||||||
|
let b:current_main_syntax = 'vue'
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"
|
"
|
||||||
" Config {{{
|
" Config {{{
|
||||||
@@ -64,10 +66,6 @@ function! s:SetCurrentSyntax(type)
|
|||||||
if a:type == 'coffee'
|
if a:type == 'coffee'
|
||||||
syntax cluster coffeeJS contains=@htmlJavaScript
|
syntax cluster coffeeJS contains=@htmlJavaScript
|
||||||
let b:current_syntax = 'vue'
|
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
|
else
|
||||||
unlet! b:current_syntax
|
unlet! b:current_syntax
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user