mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
fix: v-else highlighting error
This commit is contained in:
@@ -15,11 +15,12 @@ let s:highlight_vue_attr = exists("g:vim_vue_plugin_highlight_vue_attr")
|
||||
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 VueAttr '\v(\S)@<![v:\@][^\=]*(\=\"[^"]*\")?'
|
||||
syntax match VueAttr '\v(\S)@<![v:\@][^\=\>]*(\=\"[^"]*\")?'
|
||||
\ keepend
|
||||
\ containedin=htmlTag
|
||||
\ contains=VueKey,VueQuote
|
||||
|
||||
syntax match VueKey contained '\v[v:\@][^\=]+'
|
||||
syntax match VueKey contained '\v[v:\@][^\=\>]+'
|
||||
syntax region VueQuote contained
|
||||
\ start='"' end='"' contains=VueValue
|
||||
syntax match VueValue contained '\v\"\zs[^"]*\ze\"'
|
||||
|
||||
Reference in New Issue
Block a user