mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-05-25 01:38:44 +08:00
Use syn-match to highlight both transition and transition-group
This commit is contained in:
+2
-1
@@ -11,9 +11,10 @@ let s:highlight_vue_attr = vue#GetConfig("highlight_vue_attr", 0)
|
|||||||
" Syntax highlight {{{
|
" Syntax highlight {{{
|
||||||
"
|
"
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Use syn-match to highlight both transition and transition-group
|
||||||
|
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-z0-9]+(-[a-z0-9]+)+>'
|
||||||
syntax match VueComponentName containedin=htmlTagN '\v\C<([A-Z][a-zA-Z0-9]+)+>'
|
syntax match VueComponentName containedin=htmlTagN '\v\C<([A-Z][a-zA-Z0-9]+)+>'
|
||||||
syntax keyword VueComponentName containedin=htmlTagN component transition slot
|
|
||||||
|
|
||||||
syntax match VueAttr '\v(\S)@<![v:\@][^=/>[:blank:]]+(\=\"[^"]*\")?'
|
syntax match VueAttr '\v(\S)@<![v:\@][^=/>[:blank:]]+(\=\"[^"]*\")?'
|
||||||
\ keepend
|
\ keepend
|
||||||
|
|||||||
Reference in New Issue
Block a user