fix: add '^' back in vueTemplate end match pattern

This commit is contained in:
yemai
2019-06-12 13:11:11 +08:00
parent c4047490fd
commit b98c23545b

View File

@@ -107,10 +107,9 @@ endif
" Syntax highlight {{{ " Syntax highlight {{{
" "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Find tag <template> / <script> / <style> and enable currespond syntax
syn region vueTemplate syn region vueTemplate
\ start=+<template\(\s.\{-}\)\?>+ \ start=+<template\(\s.\{-}\)\?>+
\ end=+</template>+ \ end=+^</template>+
\ keepend contains=@HTMLSyntax \ keepend contains=@HTMLSyntax
syn region vueTemplatePug syn region vueTemplatePug
\ start=+<template lang="pug"\(\s.\{-}\)\?>+ \ start=+<template lang="pug"\(\s.\{-}\)\?>+