From dbe39f47966865f312b788e3121627d02952e2fd Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Thu, 1 Feb 2018 21:37:38 +0000 Subject: [PATCH] vue syntax highlighting colours --- vim/colors/customred256.vim | 8 ++++---- vim/syntax/vue_custom.vim | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/vim/colors/customred256.vim b/vim/colors/customred256.vim index fdb35db..adf0426 100644 --- a/vim/colors/customred256.vim +++ b/vim/colors/customred256.vim @@ -252,15 +252,15 @@ hi! def link jsParenRepeat CRAltBright " vue definitions hi! vueDirective ctermfg=88 hi! vueEvent ctermfg=160 -hi! vueConditional ctermfg=202 +hi! vueConditional ctermfg=208 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 vueConditionalValue vueDirectiveValue hi! def link vueForValue vueConditionalValue -hi! def link vueRefValue vueRef +hi! vueRefValue ctermfg=202 " json definitions hi! def link jsonKeyword Identifier diff --git a/vim/syntax/vue_custom.vim b/vim/syntax/vue_custom.vim index 736b9b0..3d37471 100644 --- a/vim/syntax/vue_custom.vim +++ b/vim/syntax/vue_custom.vim @@ -57,6 +57,8 @@ syn region vueSurroundingTag contained start=+<\(script\|style\|template\)+ e syn keyword htmlSpecialTagName contained template 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 vueEvent "[@][-:.0-9_a-z]*" containedin=htmlTag nextgroup=vueEventValue syn match vueConditional "v-else" containedin=htmlTag