diff options
Diffstat (limited to 'runtime/tools')
-rw-r--r-- | runtime/tools/check_colors.vim | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/runtime/tools/check_colors.vim b/runtime/tools/check_colors.vim index 85df882d1e..035914980d 100644 --- a/runtime/tools/check_colors.vim +++ b/runtime/tools/check_colors.vim @@ -8,10 +8,23 @@ set cpo&vim func! Test_check_colors() let l:savedview = winsaveview() call cursor(1,1) + + " err is + " { + " colors_name: "message", + " init: "message", + " background: "message", + " ....etc + " highlight: { + " 'Normal': "Missing ...", + " 'Conceal': "Missing ..." + " ....etc + " } + " } let err = {} " 1) Check g:colors_name is existing - if !search('\<\%(g:\)\?colors_name\>', 'cnW') + if search('\<\%(g:\)\?colors_name\>', 'cnW') == 0 let err['colors_name'] = 'g:colors_name not set' else let err['colors_name'] = 'OK' @@ -202,11 +215,12 @@ func! Test_check_colors() call Result(err) endfu + fu! Result(err) let do_groups = 0 echohl Title|echomsg "---------------"|echohl Normal for key in sort(keys(a:err)) - if key is# 'highlight' + if key ==# 'highlight' let do_groups = !empty(a:err[key]) continue else |