From 81fa52d7408b43280f32ed24632d88eaf1528b35 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 9 May 2018 18:34:29 +0100 Subject: [PATCH] router-link --- vim/after/syntax/vue.vim | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/vim/after/syntax/vue.vim b/vim/after/syntax/vue.vim index ce8d66f..3f81178 100644 --- a/vim/after/syntax/vue.vim +++ b/vim/after/syntax/vue.vim @@ -2,13 +2,13 @@ runtime! after/syntax/html.vim syn keyword vueComponentTag contained template containedin=htmlSpecialTagName -syn match vueDirective "\(^\|\s\)\zs[v:][-:.0-9_a-z]*" containedin=htmlTag,htmlTagN contains=vueDirectiveClass nextgroup=vueDirectiveValue -syn match vueEvent "\(^\|\s\)\zs[@][-:.0-9_a-z]*" containedin=htmlTag,htmlTagN nextgroup=vueEventValue -syn match vueConditional "\\)" containedin=htmlTag,htmlTagN +syn match vueComponentName contained "\(<\|\)" containedin=htmlTag,vueTag,htmlTagN +syn region vueLink start="[^>]*" end=""me=e-14 contains=@Spell,vueTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLeadingSpace,javaScript,@htmlPreproc,vueComponentName +syn region vueTag start=+<[^/]+ end=+>+ fold contained contains=htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster,vueDynamicComponent +syn match vueComponentName contained "router-link" containedin=vueTag,htmlEndTag +hi! def link vueLink htmlLink -syn match vueDynamicComponent contained "\\|\" containedin=htmlTag,htmlTagN -syn match vueTransitionComponent contained "\" containedin=htmlTag,htmlTagN nextgroup=vueTransitionName,vueTransitionMode -syn region vueTransitionName contained start=+\sname="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,htmlTagN -syn region vueTransitionMode contained start=+\smode="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,htmlTagN +syn match vueDynamicComponent contained "\\|\\|\" containedin=htmlTag,vueTag,htmlTagN +syn match vueTransitionComponent contained "\" containedin=htmlTag,vueTag,htmlTagN nextgroup=vueTransitionName,vueTransitionMode +syn region vueTransitionName contained start=+\sname="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,vueTag,htmlTagN +syn region vueTransitionMode contained start=+\smode="+hs=s+7 end=+"+he=e-1 containedin=htmlTag,vueTag,htmlTagN syn keyword vueTagSpecial contained template script style containedin=htmlTagN syn keyword htmlArg contained scoped ts @@ -43,7 +47,7 @@ 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 match cssClassesAttr contained "\<[-a-zA-z0-9]*class[-a-zA-z0-9]*=" contains=htmlSpecialChar,cssClassAttr,cssAttrNoise,cssClassName containedin=htmlTag,htmlTagN keepend nextgroup=vueClassesName +syn match cssClassesAttr contained "\<[-a-zA-z0-9]*class[-a-zA-z0-9]*=" contains=htmlSpecialChar,cssClassAttr,cssAttrNoise,cssClassName containedin=htmlTag,vueTag,htmlTagN keepend nextgroup=vueClassesName syn region vueClassesName contained start=+"+hs=s+1 end=+"+he=e-1