diff --git a/autoload/vue.vim b/autoload/vue.vim index 869cb0c..0f08ba6 100644 --- a/autoload/vue.vim +++ b/autoload/vue.vim @@ -143,8 +143,9 @@ function! s:SyntaxListAtEnd(lnum) let plnum = prevnonblank(a:lnum) let pline = getline(plnum) - " return [] if prevnonblank is an end tag - if pline =~ '^<\/' + " return [] if prevnonblank is an end tag, e.g. for blank lines between + " blocks, but not for the end tag line itself + if plnum != a:lnum && pline =~ '^<\/' return [] endif