mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-07 13:14:34 +08:00
feat: support vim-emmet JavaScript filetype
This commit is contained in:
@@ -185,7 +185,7 @@ function! s:SynCSS(syn)
|
||||
endfunction
|
||||
|
||||
function! s:SynVueScriptOrStyle(syn)
|
||||
return a:syn =~? '\v(vueStyle)|(vueScript)'
|
||||
return a:syn =~? '\v(VueStyle)|(VueScript)'
|
||||
endfunction
|
||||
|
||||
function! s:PrevMultilineEmptyTag(lnum)
|
||||
@@ -217,9 +217,9 @@ function! GetVueTag()
|
||||
|
||||
if first_syn =~ '.*VueTemplate'
|
||||
let tag = 'template'
|
||||
elseif first_syn =~ 'vueScript.*'
|
||||
elseif first_syn =~ '.*VueScript'
|
||||
let tag = 'script'
|
||||
elseif first_syn =~ '.*vueStyle'
|
||||
elseif first_syn =~ '.*VueStyle'
|
||||
let tag = 'style'
|
||||
else
|
||||
let tag = ''
|
||||
|
||||
@@ -147,7 +147,7 @@ syntax region pugVueTemplate
|
||||
\ end=+</template>+
|
||||
\ keepend contains=@PugSyntax,vueTag
|
||||
|
||||
syntax region vueScript
|
||||
syntax region javascriptVueScript
|
||||
\ start=+<script\(\s.\{-}\)\?>+
|
||||
\ end=+</script>+
|
||||
\ keepend contains=@htmlJavaScript,jsImport,jsExport,vueTag
|
||||
|
||||
Reference in New Issue
Block a user