annotate runtime/colors/tools/check_colors.vim @ 13049:0d23a49da746 v8.0.1400

patch 8.0.1400: color scheme check script shows up as color scheme commit https://github.com/vim/vim/commit/8ee2d36e216756e712a3a9122ce1e1203378a9c8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 17 16:11:09 2017 +0100 patch 8.0.1400: color scheme check script shows up as color scheme Problem: Color scheme check script shows up as color scheme. Solution: Move it to the "tools" subdirectory. (closes https://github.com/vim/vim/issues/2457)
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Dec 2017 16:15:04 +0100
parents
children 665fe1f419b0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13049
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " This script tests a color scheme for some errors. Load the scheme and source
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 " this script. e.g. :e colors/desert.vim | :so test_colors.vim
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 " Will output possible errors.
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 let s:save_cpo= &cpo
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 set cpo&vim
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 func! Test_check_colors()
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 call cursor(1,1)
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 let err={}
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 " 1) Check g:colors_name is existing
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 if !search('\<\%(g:\)\?colors_name\>', 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 let err['colors_name'] = 'g:colors_name not set'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 else
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 let err['colors_name'] = 'OK'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 " 2) Check for some well-defined highlighting groups
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 " Some items, check several groups, e.g. Diff, Spell
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 let hi_groups = ['ColorColumn', 'Diff', 'ErrorMsg', 'Folded',
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 \ 'FoldColumn', 'IncSearch', 'LineNr', 'ModeMsg', 'MoreMsg', 'NonText',
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 \ 'Normal', 'Pmenu', 'Todo', 'Search', 'Spell', 'StatusLine', 'TabLine',
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 \ 'Title', 'Visual', 'WarningMsg', 'WildMenu']
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 let groups={}
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 for group in hi_groups
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 if search('\c@suppress\s\+'.group, 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 " skip check, if the script contains a line like
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 " @suppress Visual:
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 let groups[group] = 'Ignoring '.group
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31 continue
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
33 if !search('hi\%[ghlight] \+'.group, 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
34 let groups[group] = 'No highlight definition for '.group
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
35 continue
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
36 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
37 if !search('hi\%[ghlight] \+'.group. '.*fg=', 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
38 let groups[group] = 'Missing foreground color for '.group
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
39 continue
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
41 if search('hi\%[ghlight] \+'.group. '.*guibg=', 'cnW') &&
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
42 \ !search('hi\%[ghlight] \+'.group. '.*ctermbg=', 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
43 let groups[group] = 'Missing bg terminal color for '.group
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
44 continue
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
45 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
46 call search('hi\%[ghlight] \+'.group, 'cW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
47 " only check in the current line
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
48 if !search('guifg', 'cnW', line('.')) || !search('ctermfg', 'cnW', line('.'))
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
49 " do not check for background colors, they could be intentionally left out
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
50 let groups[group] = 'Missing fg definition for '.group
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
51 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
52 call cursor(1,1)
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
53 endfor
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
54 let err['highlight'] = groups
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
55
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
56 " 3) Check, that it does not set background highlighting
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
57 " Doesn't ':hi Normal ctermfg=253 ctermfg=233' also set the background sometimes?
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
58 let bg_set='\(set\?\|setl\(ocal\)\?\) .*\(background\|bg\)=\(dark\|light\)'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
59 let bg_let='let \%([&]\%([lg]:\)\?\)\%(background\|bg\)\s*=\s*\([''"]\?\)\w\+\1'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
60 let bg_pat='\%('.bg_set. '\|'.bg_let.'\)'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
61 let line=search(bg_pat, 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
62 if search(bg_pat, 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
63 exe line
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
64 if search('hi \U\w\+\s\+\S', 'cbnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
65 let err['background'] = 'Should not set background option after :hi statement'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
66 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
67 else
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
68 let err['background'] = 'OK'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
69 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
70 call cursor(1,1)
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
71
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
72 " 4) Check, that t_Co is checked
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
73 let pat = '[&]t_Co\s*[<>=]=\?\s*\d\+'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
74 if !search(pat, 'ncW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
75 let err['t_Co'] = 'Does not check terminal for capable colors'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
76 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
77
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
78 " 5) Initializes correctly, e.g. should have a section like
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
79 " hi clear
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
80 " if exists("syntax_on")
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
81 " syntax reset
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
82 " endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
83 let pat='hi\%[ghlight]\s*clear\n\s*if\s*exists(\([''"]\)syntax_on\1)\n\s*syn\%[tax]\s*reset\n\s*endif'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
84 if !search(pat, 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
85 let err['init'] = 'No initialization'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
86 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
87
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
88 " 6) Does not use :syn on
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
89 if search('syn\%[tax]\s\+on', 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
90 let err['background'] = 'Should not issue :syn on'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
91 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
92
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
93 " 7) Does not define filetype specfic groups like vimCommand, htmlTag,
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
94 let hi_groups = ['vim', 'html', 'python', 'sh', 'ruby']
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
95 for group in hi_groups
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
96 let pat='\Chi\%[ghlight]\s*\zs'.group.'\w\+\>'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
97 if search(pat, 'cnW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
98 let line = search(pat, 'cW')
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
99 let err['filetype'] = get(err, 'filetype', 'Should not define: ') . matchstr(getline('.'), pat). ' '
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
100 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
101 call cursor(1,1)
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
102 endfor
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
103 let g:err = err
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
104
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
105 " print Result
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
106 call Result(err)
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
107 endfu
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
108
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
109 fu! Result(err)
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
110 let do_roups = 0
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
111 echohl Title|echomsg "---------------"|echohl Normal
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
112 for key in sort(keys(a:err))
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
113 if key is# 'highlight'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
114 let do_groups = 1
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
115 continue
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
116 else
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
117 if a:err[key] !~ 'OK'
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
118 echohl Title
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
119 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
120 echomsg printf("%15s: %s", key, a:err[key])
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
121 echohl Normal
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
122 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
123 endfor
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
124 echohl Title|echomsg "---------------"|echohl Normal
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
125 if do_groups
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
126 echohl Title | echomsg "Groups" | echohl Normal
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
127 for v1 in sort(keys(a:err['highlight']))
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
128 echomsg printf("%25s: %s", v1, a:err['highlight'][v1])
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
129 endfor
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
130 endif
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
131 endfu
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
132
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
133 call Test_check_colors()
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
134
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
135 let &cpo = s:save_cpo
0d23a49da746 patch 8.0.1400: color scheme check script shows up as color scheme
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
136 unlet s:save_cpo