slots
This commit is contained in:
parent
62347b3eea
commit
53fa22648c
|
@ -6,6 +6,7 @@ syn match vueDirective "\(^\|\s\)\zs[v:][-:.0-9_a-z]*" containedin=htmlTag,h
|
|||
syn match vueEvent "\(^\|\s\)\zs[@][-:.0-9_a-z]*" containedin=htmlTag,htmlTagN nextgroup=vueEventValue
|
||||
syn match vueConditional "\<v-else" containedin=htmlTag,htmlTagN
|
||||
syn match vueConditional "\<v-if\|\<v-show" containedin=htmlTag,htmlTagN nextgroup=vueConditionalValue
|
||||
syn match vueSlot +\<slot=+he=e-1 containedin=htmlTag,htmlTagN nextgroup=vueSlotValue
|
||||
syn match vueFor "\<v-for" containedin=htmlTag,htmlTagN nextgroup=vueForValue
|
||||
syn match vueRef "\(^\|\s\)\zs:\?ref" containedin=htmlTag,htmlTagN nextgroup=vueRefValue
|
||||
|
||||
|
@ -26,6 +27,8 @@ syn region vueForValue contained start=+="+hs=s+2 end=+"+he=e-1
|
|||
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 vueSlotValue contained +"[-:.0-9_a-z]*"+hs=s+1,he=e-1
|
||||
syn match vueSlotValue contained +'[-:.0-9_a-z]*'+hs=s+1,he=e-1
|
||||
|
||||
syn match vueComponentName contained "\(<\|</\)\zsvue-[0-9A-Za-z\-]\+\|\(<\|</\)\zs\u\+[0-9A-Za-z]\+\ze\(\s\|>\)" containedin=htmlTag,htmlTagN
|
||||
|
||||
|
|
Loading…
Reference in New Issue