more vue syntax highlighting
This commit is contained in:
parent
af596cd078
commit
20357fd930
2 changed files with 20 additions and 6 deletions
|
|
@ -56,11 +56,19 @@ endif
|
|||
syn region vueSurroundingTag contained start=+<\(script\|style\|template\)+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
|
||||
syn keyword htmlSpecialTagName contained template
|
||||
syn keyword htmlArg contained scoped ts
|
||||
" syn match htmlArg "[@v:][-:.0-9_a-z]*\>" contained
|
||||
syn match vueDirective "[v:][-:.0-9_a-z]*" containedin=htmlTag
|
||||
syn match vueEvent "[@][-:.0-9_a-z]*" containedin=htmlTag
|
||||
syn match vueConditional "v-if\|v-else\|v-show" containedin=htmlTag
|
||||
syn match vueFor "v-for" containedin=htmlTag
|
||||
syn match vueRef "ref" containedin=htmlTag
|
||||
|
||||
|
||||
syn match vueDirective "[v:][-:.0-9_a-z]*" containedin=htmlTag nextgroup=vueDirectiveValue
|
||||
syn match vueEvent "[@][-:.0-9_a-z]*" containedin=htmlTag nextgroup=vueEventValue
|
||||
syn match vueConditional "v-else" containedin=htmlTag
|
||||
syn match vueConditional "v-if\|v-show" containedin=htmlTag nextgroup=vueConditionalValue
|
||||
syn match vueFor "v-for" containedin=htmlTag nextgroup=vueForValue
|
||||
syn match vueRef "ref" containedin=htmlTag nextgroup=vueRefValue
|
||||
|
||||
syn region vueDirectiveValue contained start=+="+hs=s+2 end=+"+he=e-1
|
||||
syn region vueEventValue contained start=+="+hs=s+2 end=+"+he=e-1
|
||||
syn region vueConditionalValue contained start=+="+hs=s+2 end=+"+he=e-1
|
||||
syn region vueForValue contained start=+="+hs=s+2 end=+"+he=e-1
|
||||
syn region vueRefValue contained start=+="+hs=s+2 end=+"+he=e-1
|
||||
|
||||
let b:current_syntax = "vue"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue