diff --git a/indent/vue.vim b/indent/vue.vim index 6cf5a81..5da4f6a 100644 --- a/indent/vue.vim +++ b/indent/vue.vim @@ -64,16 +64,17 @@ function! SynsPug(syns) return first_syn =~? '\v^(vueTemplatePug)' endfunction +function! SynsSASS(syns) + let first_syn = get(a:syns, 0) + echom first_syn + return first_syn =~? '\v^(vueStyleSASS)' +endfunction + function! SynsCSS(syns) let first_syn = get(a:syns, 0) return first_syn =~? '\v^(vueStyle)' endfunction -function! SynsSASS(syns) - let first_syn = get(a:syns, 0) - return first_syn =~? '\v^(vueStyleSASS)' -endfunction - function! SynsVueScope(syns) let first_syn = get(a:syns, 0) return first_syn =~? '\v^(vueStyle)|(vueScript)' @@ -101,13 +102,12 @@ function! GetVueIndent() if prevline =~? s:end_tag let ind = ind + &sw endif - - elseif SynsCSS(prevsyns) - call s:LogMsg('syntax: css') - let ind = GetCSSIndent() elseif SynsSASS(prevsyns) call s:LogMsg('syntax: sass') let ind = GetSassIndent() + elseif SynsCSS(prevsyns) + call s:LogMsg('syntax: css') + let ind = GetCSSIndent() else call s:LogMsg('syntax: javascript') if len(b:vue_js_indentexpr)