feat: support custom tag syntax like view, text...

This commit is contained in:
yemai
2019-06-17 15:31:36 +08:00
parent 333b29528e
commit 0a3aeeea09

View File

@@ -29,6 +29,7 @@ syntax match VueAttr '\v(\S)@<!wx[^\=]+(\=\"[^"]*\")?'
\ contains=VueKey,VueValue,VueInject \ contains=VueKey,VueValue,VueInject
syntax match VueKey contained '\vwx[^\=]+' syntax match VueKey contained '\vwx[^\=]+'
syntax match CustomTag containedin=htmlTagN '\v<(view|text|block|image)>'
highlight default link VueAttr Comment highlight default link VueAttr Comment
highlight default link VueKey Type highlight default link VueKey Type
@@ -36,3 +37,4 @@ highlight default link VueValue Comment
highlight default link VueInject Constant highlight default link VueInject Constant
highlight default link VueBrace Type highlight default link VueBrace Type
highlight default link VueComponentName Statement highlight default link VueComponentName Statement
highlight default link CustomTag Statement