mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-09 14:14:46 +08:00
feat: support vue component name syntax
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
syntax match VueComponentName containedin=htmlTagN '\v<[a-zA-Z0-9]+(-[a-zA-Z0-9]+)+>'
|
||||||
syntax match VueAttr '\v(\S)@<![v:\@][^\=]+(\=\"[^"]*\")?'
|
syntax match VueAttr '\v(\S)@<![v:\@][^\=]+(\=\"[^"]*\")?'
|
||||||
\ containedin=htmlTag
|
\ containedin=htmlTag
|
||||||
\ contains=VueKey,VueValue,VueInject
|
\ contains=VueKey,VueValue,VueInject
|
||||||
@@ -30,3 +31,4 @@ highlight link VueAttr Comment
|
|||||||
highlight link VueKey PreProc
|
highlight link VueKey PreProc
|
||||||
highlight link VueInject Constant
|
highlight link VueInject Constant
|
||||||
highlight link VueBrace PreProc
|
highlight link VueBrace PreProc
|
||||||
|
highlight link VueComponentName Statement
|
||||||
|
|||||||
Reference in New Issue
Block a user