From ed69fd077e6c557eb478bf3f3dad6e980f96f176 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 14 Mar 2018 23:16:59 +0000 Subject: [PATCH] vue classes matching --- vim/after/syntax/vue.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vim/after/syntax/vue.vim b/vim/after/syntax/vue.vim index 36e6d7d..66f39e2 100644 --- a/vim/after/syntax/vue.vim +++ b/vim/after/syntax/vue.vim @@ -28,6 +28,12 @@ syn region vueTransitionMode contained start=+\smode="+hs=s+7 end=+"+he=e-1 cont syn keyword vueTagSpecial contained template script style containedin=htmlTag, htmlTagN syn keyword htmlArg contained scoped ts -syn region cssClassRegion contained start=+classes="+hs=s+9 end=+"+he=e-1 contains=htmlSpecialChar,cssClassAttr,cssAttrNoise,cssClassName containedin=htmlTag,htmlTagN keepend -syn region cssClassRegion contained start=+classes='+hs=s+9 end=+'+he=e-1 contains=htmlSpecialChar,cssClassAttr,cssAttrNoise,cssClassName containedin=htmlTag,htmlTagN keepend +" syn region cssClassRegion contained start=+classes="+hs=s+9 end=+"+he=e-1 contains=htmlSpecialChar,cssClassAttr,cssAttrNoise,cssClassName containedin=htmlTag,htmlTagN keepend +" syn region cssClassRegion contained start=+classes='+hs=s+9 end=+'+he=e-1 contains=htmlSpecialChar,cssClassAttr,cssAttrNoise,cssClassName containedin=htmlTag,htmlTagN keepend +syn match cssClassesAttr contained "\<[-a-zA-z0-9]*class[-a-zA-z0-9]*=" contains=htmlSpecialChar,cssClassAttr,cssAttrNoise,cssClassName containedin=htmlTag,htmlTagN keepend nextgroup=vueClassesName + +syn region vueClassesName contained start=+"+hs=s+1 end=+"+he=e-1 containedin=htmlTag,htmlTagN + +hi def link cssClassesAttr cssClassAttr +hi def link vueClassesname cssClassName