diff --git a/syntax/vue.vim b/syntax/vue.vim index 507a50e..edfafa6 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -124,7 +124,10 @@ function! s:SetSyntax(block, syntax, has_lang) \.' end=+'.end.'+' \.' keepend contains='.syntax_group.', vueTag' - execute 'syntax sync match vueSync groupthere '.name.' +'.start.'+' + " Don't sync to a block ending on the same line, like + " + let sync_start = start.'\(.*'.end_tag.'\)\@!' + execute 'syntax sync match vueSync groupthere '.name.' +'.sync_start.'+' execute 'syntax sync match vueSync groupthere NONE +'.end.'+' " Block like