From d975ab169dea221df7dee1595918f68271c10fd3 Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Thu, 31 Dec 2020 16:21:22 +0800 Subject: [PATCH] Update code comments --- syntax/vue-html.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax/vue-html.vim b/syntax/vue-html.vim index b597b7a..b94a23e 100644 --- a/syntax/vue-html.vim +++ b/syntax/vue-html.vim @@ -11,7 +11,8 @@ let s:highlight_vue_attr = vue#GetConfig("highlight_vue_attr", 0) " Syntax highlight {{{ " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Use syn-match to highlight both transition and transition-group +" Use syn-match in order to highlight both transition and transition-group +" according to syn-priority syntax match VueComponentName containedin=htmlTagN '\v(component|slot|transition)' syntax match VueComponentName containedin=htmlTagN '\v\C<[a-z0-9]+(-[a-z0-9]+)+>' syntax match VueComponentName containedin=htmlTagN '\v\C<([A-Z][a-zA-Z0-9]+)+>'