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