vue syntax highlighting colours

This commit is contained in:
ManjaroOne666 2018-02-01 21:37:38 +00:00
parent 4d6b2c9680
commit 1573ec1203
2 changed files with 7 additions and 4 deletions

View File

@ -252,15 +252,16 @@ hi! def link jsParenRepeat CRAltBright
" vue definitions " vue definitions
hi! vueDirective ctermfg=88 hi! vueDirective ctermfg=88
hi! vueEvent ctermfg=160 hi! vueEvent ctermfg=160
hi! vueConditional ctermfg=202 hi! vueConditional ctermfg=208
hi! def link vueFor vueConditional hi! def link vueFor vueConditional
hi! vueRef ctermfg=214 hi! def link vueRef vueDirective
hi! vueDirectiveValue ctermfg=52 hi! vueDirectiveValue ctermfg=52
hi! def link vueEventValue vueDirectiveValue hi! def link vueEventValue vueDirectiveValue
hi! def link vueConditionalValue vueDirectiveValue hi! def link vueConditionalValue vueDirectiveValue
hi! def link vueForValue vueConditionalValue hi! def link vueForValue vueConditionalValue
hi! def link vueRefValue vueRef " hi! def link vueRefValue vueRef
hi! vueRefValue ctermfg=202
" json definitions " json definitions
hi! def link jsonKeyword Identifier hi! def link jsonKeyword Identifier

View File

@ -57,6 +57,8 @@ syn region vueSurroundingTag contained start=+<\(script\|style\|template\)+ e
syn keyword htmlSpecialTagName contained template syn keyword htmlSpecialTagName contained template
syn keyword htmlArg contained scoped ts syn keyword htmlArg contained scoped ts
syn keyword vueComponentTag contained template containedin=htmlSpecialTagName
syn match vueDirective "[v:][-:.0-9_a-z]*" containedin=htmlTag nextgroup=vueDirectiveValue 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 vueEvent "[@][-:.0-9_a-z]*" containedin=htmlTag nextgroup=vueEventValue
syn match vueConditional "v-else" containedin=htmlTag syn match vueConditional "v-else" containedin=htmlTag