better vue component name matching

This commit is contained in:
ManjaroOne666 2018-03-14 20:53:24 +00:00
parent d49d7d2d9d
commit c817b427e6
1 changed files with 6 additions and 1 deletions

View File

@ -18,4 +18,9 @@ syn region vueForValue contained start=+='+hs=s+2 end=+'+he=e-1
syn match vueRefValue contained +="[-:.0-9_a-z]*"+hs=s+2,he=e-1 syn match vueRefValue contained +="[-:.0-9_a-z]*"+hs=s+2,he=e-1
syn match vueRefValue contained +='[-:.0-9_a-z]*'+hs=s+2,he=e-1 syn match vueRefValue contained +='[-:.0-9_a-z]*'+hs=s+2,he=e-1
syn match vueComponentName contained "\(<\|</\)\zs\u\+[0-9A-Za-z]\+\ze\(\s\|>\)" containedin=htmlTag, htmlTagN syn match vueComponentName contained "\(<\|</\)\zsvue-[0-9A-Za-z\-]\+\|\(<\|</\)\zs\u\+[0-9A-Za-z]\+\ze\(\s\|>\)" containedin=htmlTag,htmlTagN
syn match vueDynamicComponent contained "\<component\>\|\<keep-alive\>" containedin=htmlTag,htmlTagN
syn match vueTransitionComponent contained "\<transition\>" 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