Bram Moolenaar | 385111b | 2016-03-12 19:23:00 +0100 | [diff] [blame] | 1 | " Test syntax highlighting functions. |
| 2 | |
| 3 | func Test_missing_attr() |
| 4 | hi Mine term=bold cterm=italic |
| 5 | call assert_equal('Mine', synIDattr(hlID("Mine"), "name")) |
| 6 | call assert_equal('', synIDattr(hlID("Mine"), "bg", 'term')) |
| 7 | call assert_equal('1', synIDattr(hlID("Mine"), "bold", 'term')) |
| 8 | call assert_equal('1', synIDattr(hlID("Mine"), "italic", 'cterm')) |
| 9 | hi Mine term=reverse cterm=inverse |
| 10 | call assert_equal('1', synIDattr(hlID("Mine"), "reverse", 'term')) |
| 11 | call assert_equal('1', synIDattr(hlID("Mine"), "inverse", 'cterm')) |
| 12 | hi Mine term=underline cterm=standout gui=undercurl |
| 13 | call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term')) |
| 14 | call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm')) |
| 15 | call assert_equal('1', synIDattr(hlID("Mine"), "undercurl", 'gui')) |
| 16 | hi Mine term=NONE cterm=NONE gui=NONE |
| 17 | call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) |
| 18 | call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm')) |
| 19 | call assert_equal('', synIDattr(hlID("Mine"), "reverse", 'term')) |
| 20 | call assert_equal('', synIDattr(hlID("Mine"), "inverse", 'cterm')) |
| 21 | call assert_equal('', synIDattr(hlID("Mine"), "underline", 'term')) |
| 22 | call assert_equal('', synIDattr(hlID("Mine"), "standout", 'cterm')) |
| 23 | call assert_equal('', synIDattr(hlID("Mine"), "undercurl", 'gui')) |
| 24 | |
| 25 | if has('gui') |
Bram Moolenaar | c835293 | 2016-03-12 20:15:21 +0100 | [diff] [blame] | 26 | let fontname = getfontname() |
| 27 | if fontname == '' |
| 28 | let fontname = 'something' |
| 29 | endif |
Bram Moolenaar | 180fc2d | 2016-05-28 13:28:10 +0200 | [diff] [blame] | 30 | exe "hi Mine guifg=blue guibg=red font='" . fontname . "'" |
Bram Moolenaar | 385111b | 2016-03-12 19:23:00 +0100 | [diff] [blame] | 31 | call assert_equal('blue', synIDattr(hlID("Mine"), "fg", 'gui')) |
| 32 | call assert_equal('red', synIDattr(hlID("Mine"), "bg", 'gui')) |
Bram Moolenaar | c835293 | 2016-03-12 20:15:21 +0100 | [diff] [blame] | 33 | call assert_equal(fontname, synIDattr(hlID("Mine"), "font", 'gui')) |
Bram Moolenaar | 385111b | 2016-03-12 19:23:00 +0100 | [diff] [blame] | 34 | endif |
| 35 | endfunc |
Bram Moolenaar | 68015bb | 2016-07-19 21:05:21 +0200 | [diff] [blame^] | 36 | |
| 37 | func Test_color_names() |
| 38 | let colors = [ |
| 39 | \ 'AliceBlue', |
| 40 | \ 'AntiqueWhite', |
| 41 | \ 'AntiqueWhite1', |
| 42 | \ 'AntiqueWhite2', |
| 43 | \ 'AntiqueWhite3', |
| 44 | \ 'AntiqueWhite4', |
| 45 | \ 'BlanchedAlmond', |
| 46 | \ 'BlueViolet', |
| 47 | \ 'CadetBlue', |
| 48 | \ 'CadetBlue1', |
| 49 | \ 'CadetBlue2', |
| 50 | \ 'CadetBlue3', |
| 51 | \ 'CadetBlue4', |
| 52 | \ 'CornflowerBlue', |
| 53 | \ 'DarkBlue', |
| 54 | \ 'DarkCyan', |
| 55 | \ 'DarkGoldenrod', |
| 56 | \ 'DarkGoldenrod1', |
| 57 | \ 'DarkGoldenrod2', |
| 58 | \ 'DarkGoldenrod3', |
| 59 | \ 'DarkGoldenrod4', |
| 60 | \ 'DarkGray', |
| 61 | \ 'DarkGreen', |
| 62 | \ 'DarkGrey', |
| 63 | \ 'DarkKhaki', |
| 64 | \ 'DarkMagenta', |
| 65 | \ 'DarkOliveGreen', |
| 66 | \ 'DarkOliveGreen1', |
| 67 | \ 'DarkOliveGreen2', |
| 68 | \ 'DarkOliveGreen3', |
| 69 | \ 'DarkOliveGreen4', |
| 70 | \ 'DarkOrange', |
| 71 | \ 'DarkOrange1', |
| 72 | \ 'DarkOrange2', |
| 73 | \ 'DarkOrange3', |
| 74 | \ 'DarkOrange4', |
| 75 | \ 'DarkOrchid', |
| 76 | \ 'DarkOrchid1', |
| 77 | \ 'DarkOrchid2', |
| 78 | \ 'DarkOrchid3', |
| 79 | \ 'DarkOrchid4', |
| 80 | \ 'DarkRed', |
| 81 | \ 'DarkSalmon', |
| 82 | \ 'DarkSeaGreen', |
| 83 | \ 'DarkSeaGreen1', |
| 84 | \ 'DarkSeaGreen2', |
| 85 | \ 'DarkSeaGreen3', |
| 86 | \ 'DarkSeaGreen4', |
| 87 | \ 'DarkSlateBlue', |
| 88 | \ 'DarkSlateGray', |
| 89 | \ 'DarkSlateGray1', |
| 90 | \ 'DarkSlateGray2', |
| 91 | \ 'DarkSlateGray3', |
| 92 | \ 'DarkSlateGray4', |
| 93 | \ 'DarkSlateGrey', |
| 94 | \ 'DarkTurquoise', |
| 95 | \ 'DarkViolet', |
| 96 | \ 'DeepPink', |
| 97 | \ 'DeepPink1', |
| 98 | \ 'DeepPink2', |
| 99 | \ 'DeepPink3', |
| 100 | \ 'DeepPink4', |
| 101 | \ 'DeepSkyBlue', |
| 102 | \ 'DeepSkyBlue1', |
| 103 | \ 'DeepSkyBlue2', |
| 104 | \ 'DeepSkyBlue3', |
| 105 | \ 'DeepSkyBlue4', |
| 106 | \ 'DimGray', |
| 107 | \ 'DimGrey', |
| 108 | \ 'DodgerBlue', |
| 109 | \ 'DodgerBlue1', |
| 110 | \ 'DodgerBlue2', |
| 111 | \ 'DodgerBlue3', |
| 112 | \ 'DodgerBlue4', |
| 113 | \ 'FloralWhite', |
| 114 | \ 'ForestGreen', |
| 115 | \ 'GhostWhite', |
| 116 | \ 'GreenYellow', |
| 117 | \ 'HotPink', |
| 118 | \ 'HotPink1', |
| 119 | \ 'HotPink2', |
| 120 | \ 'HotPink3', |
| 121 | \ 'HotPink4', |
| 122 | \ 'IndianRed', |
| 123 | \ 'IndianRed1', |
| 124 | \ 'IndianRed2', |
| 125 | \ 'IndianRed3', |
| 126 | \ 'IndianRed4', |
| 127 | \ 'LavenderBlush', |
| 128 | \ 'LavenderBlush1', |
| 129 | \ 'LavenderBlush2', |
| 130 | \ 'LavenderBlush3', |
| 131 | \ 'LavenderBlush4', |
| 132 | \ 'LawnGreen', |
| 133 | \ 'LemonChiffon', |
| 134 | \ 'LemonChiffon1', |
| 135 | \ 'LemonChiffon2', |
| 136 | \ 'LemonChiffon3', |
| 137 | \ 'LemonChiffon4', |
| 138 | \ 'LightBlue', |
| 139 | \ 'LightBlue1', |
| 140 | \ 'LightBlue2', |
| 141 | \ 'LightBlue3', |
| 142 | \ 'LightBlue4', |
| 143 | \ 'LightCoral', |
| 144 | \ 'LightCyan', |
| 145 | \ 'LightCyan1', |
| 146 | \ 'LightCyan2', |
| 147 | \ 'LightCyan3', |
| 148 | \ 'LightCyan4', |
| 149 | \ 'LightGoldenrod', |
| 150 | \ 'LightGoldenrod1', |
| 151 | \ 'LightGoldenrod2', |
| 152 | \ 'LightGoldenrod3', |
| 153 | \ 'LightGoldenrod4', |
| 154 | \ 'LightGoldenrodYellow', |
| 155 | \ 'LightGray', |
| 156 | \ 'LightGreen', |
| 157 | \ 'LightGrey', |
| 158 | \ 'LightPink', |
| 159 | \ 'LightPink1', |
| 160 | \ 'LightPink2', |
| 161 | \ 'LightPink3', |
| 162 | \ 'LightPink4', |
| 163 | \ 'LightSalmon', |
| 164 | \ 'LightSalmon1', |
| 165 | \ 'LightSalmon2', |
| 166 | \ 'LightSalmon3', |
| 167 | \ 'LightSalmon4', |
| 168 | \ 'LightSeaGreen', |
| 169 | \ 'LightSkyBlue', |
| 170 | \ 'LightSkyBlue1', |
| 171 | \ 'LightSkyBlue2', |
| 172 | \ 'LightSkyBlue3', |
| 173 | \ 'LightSkyBlue4', |
| 174 | \ 'LightSlateBlue', |
| 175 | \ 'LightSlateGray', |
| 176 | \ 'LightSlateGrey', |
| 177 | \ 'LightSteelBlue', |
| 178 | \ 'LightSteelBlue1', |
| 179 | \ 'LightSteelBlue2', |
| 180 | \ 'LightSteelBlue3', |
| 181 | \ 'LightSteelBlue4', |
| 182 | \ 'LightYellow', |
| 183 | \ 'LightYellow1', |
| 184 | \ 'LightYellow2', |
| 185 | \ 'LightYellow3', |
| 186 | \ 'LightYellow4', |
| 187 | \ 'LimeGreen', |
| 188 | \ 'MediumAquamarine', |
| 189 | \ 'MediumBlue', |
| 190 | \ 'MediumOrchid', |
| 191 | \ 'MediumOrchid1', |
| 192 | \ 'MediumOrchid2', |
| 193 | \ 'MediumOrchid3', |
| 194 | \ 'MediumOrchid4', |
| 195 | \ 'MediumPurple', |
| 196 | \ 'MediumPurple1', |
| 197 | \ 'MediumPurple2', |
| 198 | \ 'MediumPurple3', |
| 199 | \ 'MediumPurple4', |
| 200 | \ 'MediumSeaGreen', |
| 201 | \ 'MediumSlateBlue', |
| 202 | \ 'MediumSpringGreen', |
| 203 | \ 'MediumTurquoise', |
| 204 | \ 'MediumVioletRed', |
| 205 | \ 'MidnightBlue', |
| 206 | \ 'MintCream', |
| 207 | \ 'MistyRose', |
| 208 | \ 'MistyRose1', |
| 209 | \ 'MistyRose2', |
| 210 | \ 'MistyRose3', |
| 211 | \ 'MistyRose4', |
| 212 | \ 'NavajoWhite', |
| 213 | \ 'NavajoWhite1', |
| 214 | \ 'NavajoWhite2', |
| 215 | \ 'NavajoWhite3', |
| 216 | \ 'NavajoWhite4', |
| 217 | \ 'NavyBlue', |
| 218 | \ 'OldLace', |
| 219 | \ 'OliveDrab', |
| 220 | \ 'OliveDrab1', |
| 221 | \ 'OliveDrab2', |
| 222 | \ 'OliveDrab3', |
| 223 | \ 'OliveDrab4', |
| 224 | \ 'OrangeRed', |
| 225 | \ 'OrangeRed1', |
| 226 | \ 'OrangeRed2', |
| 227 | \ 'OrangeRed3', |
| 228 | \ 'OrangeRed4', |
| 229 | \ 'PaleGoldenrod', |
| 230 | \ 'PaleGreen', |
| 231 | \ 'PaleGreen1', |
| 232 | \ 'PaleGreen2', |
| 233 | \ 'PaleGreen3', |
| 234 | \ 'PaleGreen4', |
| 235 | \ 'PaleTurquoise', |
| 236 | \ 'PaleTurquoise1', |
| 237 | \ 'PaleTurquoise2', |
| 238 | \ 'PaleTurquoise3', |
| 239 | \ 'PaleTurquoise4', |
| 240 | \ 'PaleVioletRed', |
| 241 | \ 'PaleVioletRed1', |
| 242 | \ 'PaleVioletRed2', |
| 243 | \ 'PaleVioletRed3', |
| 244 | \ 'PaleVioletRed4', |
| 245 | \ 'PapayaWhip', |
| 246 | \ 'PeachPuff', |
| 247 | \ 'PeachPuff1', |
| 248 | \ 'PeachPuff2', |
| 249 | \ 'PeachPuff3', |
| 250 | \ 'PeachPuff4', |
| 251 | \ 'PowderBlue', |
| 252 | \ 'RosyBrown', |
| 253 | \ 'RosyBrown1', |
| 254 | \ 'RosyBrown2', |
| 255 | \ 'RosyBrown3', |
| 256 | \ 'RosyBrown4', |
| 257 | \ 'RoyalBlue', |
| 258 | \ 'RoyalBlue1', |
| 259 | \ 'RoyalBlue2', |
| 260 | \ 'RoyalBlue3', |
| 261 | \ 'RoyalBlue4', |
| 262 | \ 'SaddleBrown', |
| 263 | \ 'SandyBrown', |
| 264 | \ 'SeaGreen', |
| 265 | \ 'SeaGreen1', |
| 266 | \ 'SeaGreen2', |
| 267 | \ 'SeaGreen3', |
| 268 | \ 'SeaGreen4', |
| 269 | \ 'SkyBlue', |
| 270 | \ 'SkyBlue1', |
| 271 | \ 'SkyBlue2', |
| 272 | \ 'SkyBlue3', |
| 273 | \ 'SkyBlue4', |
| 274 | \ 'SlateBlue', |
| 275 | \ 'SlateBlue1', |
| 276 | \ 'SlateBlue2', |
| 277 | \ 'SlateBlue3', |
| 278 | \ 'SlateBlue4', |
| 279 | \ 'SlateGray', |
| 280 | \ 'SlateGray1', |
| 281 | \ 'SlateGray2', |
| 282 | \ 'SlateGray3', |
| 283 | \ 'SlateGray4', |
| 284 | \ 'SlateGrey', |
| 285 | \ 'SpringGreen', |
| 286 | \ 'SpringGreen1', |
| 287 | \ 'SpringGreen2', |
| 288 | \ 'SpringGreen3', |
| 289 | \ 'SpringGreen4', |
| 290 | \ 'SteelBlue', |
| 291 | \ 'SteelBlue1', |
| 292 | \ 'SteelBlue2', |
| 293 | \ 'SteelBlue3', |
| 294 | \ 'SteelBlue4', |
| 295 | \ 'VioletRed', |
| 296 | \ 'VioletRed1', |
| 297 | \ 'VioletRed2', |
| 298 | \ 'VioletRed3', |
| 299 | \ 'VioletRed4', |
| 300 | \ 'WhiteSmoke', |
| 301 | \ 'YellowGreen', |
| 302 | \ 'alice blue', |
| 303 | \ 'antique white', |
| 304 | \ 'aquamarine', |
| 305 | \ 'aquamarine1', |
| 306 | \ 'aquamarine2', |
| 307 | \ 'aquamarine3', |
| 308 | \ 'aquamarine4', |
| 309 | \ 'azure', |
| 310 | \ 'azure1', |
| 311 | \ 'azure2', |
| 312 | \ 'azure3', |
| 313 | \ 'azure4', |
| 314 | \ 'beige', |
| 315 | \ 'bisque', |
| 316 | \ 'bisque1', |
| 317 | \ 'bisque2', |
| 318 | \ 'bisque3', |
| 319 | \ 'bisque4', |
| 320 | \ 'black', |
| 321 | \ 'blanched almond', |
| 322 | \ 'blue violet', |
| 323 | \ 'blue', |
| 324 | \ 'blue1', |
| 325 | \ 'blue2', |
| 326 | \ 'blue3', |
| 327 | \ 'blue4', |
| 328 | \ 'brown', |
| 329 | \ 'brown1', |
| 330 | \ 'brown2', |
| 331 | \ 'brown3', |
| 332 | \ 'brown4', |
| 333 | \ 'burlywood', |
| 334 | \ 'burlywood1', |
| 335 | \ 'burlywood2', |
| 336 | \ 'burlywood3', |
| 337 | \ 'burlywood4', |
| 338 | \ 'cadet blue', |
| 339 | \ 'chartreuse', |
| 340 | \ 'chartreuse1', |
| 341 | \ 'chartreuse2', |
| 342 | \ 'chartreuse3', |
| 343 | \ 'chartreuse4', |
| 344 | \ 'chocolate', |
| 345 | \ 'chocolate1', |
| 346 | \ 'chocolate2', |
| 347 | \ 'chocolate3', |
| 348 | \ 'chocolate4', |
| 349 | \ 'coral', |
| 350 | \ 'coral1', |
| 351 | \ 'coral2', |
| 352 | \ 'coral3', |
| 353 | \ 'coral4', |
| 354 | \ 'cornflower blue', |
| 355 | \ 'cornsilk', |
| 356 | \ 'cornsilk1', |
| 357 | \ 'cornsilk2', |
| 358 | \ 'cornsilk3', |
| 359 | \ 'cornsilk4', |
| 360 | \ 'cyan', |
| 361 | \ 'cyan1', |
| 362 | \ 'cyan2', |
| 363 | \ 'cyan3', |
| 364 | \ 'cyan4', |
| 365 | \ 'dark blue', |
| 366 | \ 'dark cyan', |
| 367 | \ 'dark goldenrod', |
| 368 | \ 'dark gray', |
| 369 | \ 'dark green', |
| 370 | \ 'dark grey', |
| 371 | \ 'dark khaki', |
| 372 | \ 'dark magenta', |
| 373 | \ 'dark olive green', |
| 374 | \ 'dark orange', |
| 375 | \ 'dark orchid', |
| 376 | \ 'dark red', |
| 377 | \ 'dark salmon', |
| 378 | \ 'dark sea green', |
| 379 | \ 'dark slate blue', |
| 380 | \ 'dark slate gray', |
| 381 | \ 'dark slate grey', |
| 382 | \ 'dark turquoise', |
| 383 | \ 'dark violet', |
| 384 | \ 'darkblue', |
| 385 | \ 'darkcyan', |
| 386 | \ 'darkgray', |
| 387 | \ 'darkgreen', |
| 388 | \ 'darkgrey', |
| 389 | \ 'darkmagenta', |
| 390 | \ 'darkred', |
| 391 | \ 'darkyellow', |
| 392 | \ 'deep pink', |
| 393 | \ 'deep sky blue', |
| 394 | \ 'dim gray', |
| 395 | \ 'dim grey', |
| 396 | \ 'dodger blue', |
| 397 | \ 'firebrick', |
| 398 | \ 'firebrick1', |
| 399 | \ 'firebrick2', |
| 400 | \ 'firebrick3', |
| 401 | \ 'firebrick4', |
| 402 | \ 'floral white', |
| 403 | \ 'forest green', |
| 404 | \ 'gainsboro', |
| 405 | \ 'ghost white', |
| 406 | \ 'gold', |
| 407 | \ 'gold1', |
| 408 | \ 'gold2', |
| 409 | \ 'gold3', |
| 410 | \ 'gold4', |
| 411 | \ 'goldenrod', |
| 412 | \ 'goldenrod1', |
| 413 | \ 'goldenrod2', |
| 414 | \ 'goldenrod3', |
| 415 | \ 'goldenrod4', |
| 416 | \ 'gray', |
| 417 | \ 'gray0', |
| 418 | \ 'gray1', |
| 419 | \ 'gray10', |
| 420 | \ 'gray100', |
| 421 | \ 'gray11', |
| 422 | \ 'gray12', |
| 423 | \ 'gray13', |
| 424 | \ 'gray14', |
| 425 | \ 'gray15', |
| 426 | \ 'gray16', |
| 427 | \ 'gray17', |
| 428 | \ 'gray18', |
| 429 | \ 'gray19', |
| 430 | \ 'gray2', |
| 431 | \ 'gray20', |
| 432 | \ 'gray21', |
| 433 | \ 'gray22', |
| 434 | \ 'gray23', |
| 435 | \ 'gray24', |
| 436 | \ 'gray25', |
| 437 | \ 'gray26', |
| 438 | \ 'gray27', |
| 439 | \ 'gray28', |
| 440 | \ 'gray29', |
| 441 | \ 'gray3', |
| 442 | \ 'gray30', |
| 443 | \ 'gray31', |
| 444 | \ 'gray32', |
| 445 | \ 'gray33', |
| 446 | \ 'gray34', |
| 447 | \ 'gray35', |
| 448 | \ 'gray36', |
| 449 | \ 'gray37', |
| 450 | \ 'gray38', |
| 451 | \ 'gray39', |
| 452 | \ 'gray4', |
| 453 | \ 'gray40', |
| 454 | \ 'gray41', |
| 455 | \ 'gray42', |
| 456 | \ 'gray43', |
| 457 | \ 'gray44', |
| 458 | \ 'gray45', |
| 459 | \ 'gray46', |
| 460 | \ 'gray47', |
| 461 | \ 'gray48', |
| 462 | \ 'gray49', |
| 463 | \ 'gray5', |
| 464 | \ 'gray50', |
| 465 | \ 'gray51', |
| 466 | \ 'gray52', |
| 467 | \ 'gray53', |
| 468 | \ 'gray54', |
| 469 | \ 'gray55', |
| 470 | \ 'gray56', |
| 471 | \ 'gray57', |
| 472 | \ 'gray58', |
| 473 | \ 'gray59', |
| 474 | \ 'gray6', |
| 475 | \ 'gray60', |
| 476 | \ 'gray61', |
| 477 | \ 'gray62', |
| 478 | \ 'gray63', |
| 479 | \ 'gray64', |
| 480 | \ 'gray65', |
| 481 | \ 'gray66', |
| 482 | \ 'gray67', |
| 483 | \ 'gray68', |
| 484 | \ 'gray69', |
| 485 | \ 'gray7', |
| 486 | \ 'gray70', |
| 487 | \ 'gray71', |
| 488 | \ 'gray72', |
| 489 | \ 'gray73', |
| 490 | \ 'gray74', |
| 491 | \ 'gray75', |
| 492 | \ 'gray76', |
| 493 | \ 'gray77', |
| 494 | \ 'gray78', |
| 495 | \ 'gray79', |
| 496 | \ 'gray8', |
| 497 | \ 'gray80', |
| 498 | \ 'gray81', |
| 499 | \ 'gray82', |
| 500 | \ 'gray83', |
| 501 | \ 'gray84', |
| 502 | \ 'gray85', |
| 503 | \ 'gray86', |
| 504 | \ 'gray87', |
| 505 | \ 'gray88', |
| 506 | \ 'gray89', |
| 507 | \ 'gray9', |
| 508 | \ 'gray90', |
| 509 | \ 'gray91', |
| 510 | \ 'gray92', |
| 511 | \ 'gray93', |
| 512 | \ 'gray94', |
| 513 | \ 'gray95', |
| 514 | \ 'gray96', |
| 515 | \ 'gray97', |
| 516 | \ 'gray98', |
| 517 | \ 'gray99', |
| 518 | \ 'green yellow', |
| 519 | \ 'green', |
| 520 | \ 'green1', |
| 521 | \ 'green2', |
| 522 | \ 'green3', |
| 523 | \ 'green4', |
| 524 | \ 'grey', |
| 525 | \ 'grey0', |
| 526 | \ 'grey1', |
| 527 | \ 'grey10', |
| 528 | \ 'grey100', |
| 529 | \ 'grey11', |
| 530 | \ 'grey12', |
| 531 | \ 'grey13', |
| 532 | \ 'grey14', |
| 533 | \ 'grey15', |
| 534 | \ 'grey16', |
| 535 | \ 'grey17', |
| 536 | \ 'grey18', |
| 537 | \ 'grey19', |
| 538 | \ 'grey2', |
| 539 | \ 'grey20', |
| 540 | \ 'grey21', |
| 541 | \ 'grey22', |
| 542 | \ 'grey23', |
| 543 | \ 'grey24', |
| 544 | \ 'grey25', |
| 545 | \ 'grey26', |
| 546 | \ 'grey27', |
| 547 | \ 'grey28', |
| 548 | \ 'grey29', |
| 549 | \ 'grey3', |
| 550 | \ 'grey30', |
| 551 | \ 'grey31', |
| 552 | \ 'grey32', |
| 553 | \ 'grey33', |
| 554 | \ 'grey34', |
| 555 | \ 'grey35', |
| 556 | \ 'grey36', |
| 557 | \ 'grey37', |
| 558 | \ 'grey38', |
| 559 | \ 'grey39', |
| 560 | \ 'grey4', |
| 561 | \ 'grey40', |
| 562 | \ 'grey41', |
| 563 | \ 'grey42', |
| 564 | \ 'grey43', |
| 565 | \ 'grey44', |
| 566 | \ 'grey45', |
| 567 | \ 'grey46', |
| 568 | \ 'grey47', |
| 569 | \ 'grey48', |
| 570 | \ 'grey49', |
| 571 | \ 'grey5', |
| 572 | \ 'grey50', |
| 573 | \ 'grey51', |
| 574 | \ 'grey52', |
| 575 | \ 'grey53', |
| 576 | \ 'grey54', |
| 577 | \ 'grey55', |
| 578 | \ 'grey56', |
| 579 | \ 'grey57', |
| 580 | \ 'grey58', |
| 581 | \ 'grey59', |
| 582 | \ 'grey6', |
| 583 | \ 'grey60', |
| 584 | \ 'grey61', |
| 585 | \ 'grey62', |
| 586 | \ 'grey63', |
| 587 | \ 'grey64', |
| 588 | \ 'grey65', |
| 589 | \ 'grey66', |
| 590 | \ 'grey67', |
| 591 | \ 'grey68', |
| 592 | \ 'grey69', |
| 593 | \ 'grey7', |
| 594 | \ 'grey70', |
| 595 | \ 'grey71', |
| 596 | \ 'grey72', |
| 597 | \ 'grey73', |
| 598 | \ 'grey74', |
| 599 | \ 'grey75', |
| 600 | \ 'grey76', |
| 601 | \ 'grey77', |
| 602 | \ 'grey78', |
| 603 | \ 'grey79', |
| 604 | \ 'grey8', |
| 605 | \ 'grey80', |
| 606 | \ 'grey81', |
| 607 | \ 'grey82', |
| 608 | \ 'grey83', |
| 609 | \ 'grey84', |
| 610 | \ 'grey85', |
| 611 | \ 'grey86', |
| 612 | \ 'grey87', |
| 613 | \ 'grey88', |
| 614 | \ 'grey89', |
| 615 | \ 'grey9', |
| 616 | \ 'grey90', |
| 617 | \ 'grey91', |
| 618 | \ 'grey92', |
| 619 | \ 'grey93', |
| 620 | \ 'grey94', |
| 621 | \ 'grey95', |
| 622 | \ 'grey96', |
| 623 | \ 'grey97', |
| 624 | \ 'grey98', |
| 625 | \ 'grey99', |
| 626 | \ 'honeydew', |
| 627 | \ 'honeydew1', |
| 628 | \ 'honeydew2', |
| 629 | \ 'honeydew3', |
| 630 | \ 'honeydew4', |
| 631 | \ 'hot pink', |
| 632 | \ 'indian red', |
| 633 | \ 'ivory', |
| 634 | \ 'ivory1', |
| 635 | \ 'ivory2', |
| 636 | \ 'ivory3', |
| 637 | \ 'ivory4', |
| 638 | \ 'khaki', |
| 639 | \ 'khaki1', |
| 640 | \ 'khaki2', |
| 641 | \ 'khaki3', |
| 642 | \ 'khaki4', |
| 643 | \ 'lavender blush', |
| 644 | \ 'lavender', |
| 645 | \ 'lawn green', |
| 646 | \ 'lemon chiffon', |
| 647 | \ 'light blue', |
| 648 | \ 'light coral', |
| 649 | \ 'light cyan', |
| 650 | \ 'light goldenrod yellow', |
| 651 | \ 'light goldenrod', |
| 652 | \ 'light gray', |
| 653 | \ 'light green', |
| 654 | \ 'light grey', |
| 655 | \ 'light pink', |
| 656 | \ 'light salmon', |
| 657 | \ 'light sea green', |
| 658 | \ 'light sky blue', |
| 659 | \ 'light slate blue', |
| 660 | \ 'light slate gray', |
| 661 | \ 'light slate grey', |
| 662 | \ 'light steel blue', |
| 663 | \ 'light yellow', |
| 664 | \ 'lightblue', |
| 665 | \ 'lightcyan', |
| 666 | \ 'lightgray', |
| 667 | \ 'lightgreen', |
| 668 | \ 'lightgrey', |
| 669 | \ 'lightmagenta', |
| 670 | \ 'lightred', |
| 671 | \ 'lightyellow', |
| 672 | \ 'lime green', |
| 673 | \ 'linen', |
| 674 | \ 'magenta', |
| 675 | \ 'magenta1', |
| 676 | \ 'magenta2', |
| 677 | \ 'magenta3', |
| 678 | \ 'magenta4', |
| 679 | \ 'maroon', |
| 680 | \ 'maroon1', |
| 681 | \ 'maroon2', |
| 682 | \ 'maroon3', |
| 683 | \ 'maroon4', |
| 684 | \ 'medium aquamarine', |
| 685 | \ 'medium blue', |
| 686 | \ 'medium orchid', |
| 687 | \ 'medium purple', |
| 688 | \ 'medium sea green', |
| 689 | \ 'medium slate blue', |
| 690 | \ 'medium spring green', |
| 691 | \ 'medium turquoise', |
| 692 | \ 'medium violet red', |
| 693 | \ 'midnight blue', |
| 694 | \ 'mint cream', |
| 695 | \ 'misty rose', |
| 696 | \ 'moccasin', |
| 697 | \ 'navajo white', |
| 698 | \ 'navy blue', |
| 699 | \ 'navy', |
| 700 | \ 'old lace', |
| 701 | \ 'olive drab', |
| 702 | \ 'orange red', |
| 703 | \ 'orange', |
| 704 | \ 'orange1', |
| 705 | \ 'orange2', |
| 706 | \ 'orange3', |
| 707 | \ 'orange4', |
| 708 | \ 'orchid', |
| 709 | \ 'orchid1', |
| 710 | \ 'orchid2', |
| 711 | \ 'orchid3', |
| 712 | \ 'orchid4', |
| 713 | \ 'pale goldenrod', |
| 714 | \ 'pale green', |
| 715 | \ 'pale turquoise', |
| 716 | \ 'pale violet red', |
| 717 | \ 'papaya whip', |
| 718 | \ 'peach puff', |
| 719 | \ 'peru', |
| 720 | \ 'pink', |
| 721 | \ 'pink1', |
| 722 | \ 'pink2', |
| 723 | \ 'pink3', |
| 724 | \ 'pink4', |
| 725 | \ 'plum', |
| 726 | \ 'plum1', |
| 727 | \ 'plum2', |
| 728 | \ 'plum3', |
| 729 | \ 'plum4', |
| 730 | \ 'powder blue', |
| 731 | \ 'purple', |
| 732 | \ 'purple1', |
| 733 | \ 'purple2', |
| 734 | \ 'purple3', |
| 735 | \ 'purple4', |
| 736 | \ 'red', |
| 737 | \ 'red1', |
| 738 | \ 'red2', |
| 739 | \ 'red3', |
| 740 | \ 'red4', |
| 741 | \ 'rosy brown', |
| 742 | \ 'royal blue', |
| 743 | \ 'saddle brown', |
| 744 | \ 'salmon', |
| 745 | \ 'salmon1', |
| 746 | \ 'salmon2', |
| 747 | \ 'salmon3', |
| 748 | \ 'salmon4', |
| 749 | \ 'sandy brown', |
| 750 | \ 'sea green', |
| 751 | \ 'seagreen', |
| 752 | \ 'seashell', |
| 753 | \ 'seashell1', |
| 754 | \ 'seashell2', |
| 755 | \ 'seashell3', |
| 756 | \ 'seashell4', |
| 757 | \ 'sienna', |
| 758 | \ 'sienna1', |
| 759 | \ 'sienna2', |
| 760 | \ 'sienna3', |
| 761 | \ 'sienna4', |
| 762 | \ 'sky blue', |
| 763 | \ 'slate blue', |
| 764 | \ 'slate gray', |
| 765 | \ 'slate grey', |
| 766 | \ 'slateblue', |
| 767 | \ 'snow', |
| 768 | \ 'snow1', |
| 769 | \ 'snow2', |
| 770 | \ 'snow3', |
| 771 | \ 'snow4', |
| 772 | \ 'spring green', |
| 773 | \ 'steel blue', |
| 774 | \ 'tan', |
| 775 | \ 'tan1', |
| 776 | \ 'tan2', |
| 777 | \ 'tan3', |
| 778 | \ 'tan4', |
| 779 | \ 'thistle', |
| 780 | \ 'thistle1', |
| 781 | \ 'thistle2', |
| 782 | \ 'thistle3', |
| 783 | \ 'thistle4', |
| 784 | \ 'tomato', |
| 785 | \ 'tomato1', |
| 786 | \ 'tomato2', |
| 787 | \ 'tomato3', |
| 788 | \ 'tomato4', |
| 789 | \ 'turquoise', |
| 790 | \ 'turquoise1', |
| 791 | \ 'turquoise2', |
| 792 | \ 'turquoise3', |
| 793 | \ 'turquoise4', |
| 794 | \ 'violet red', |
| 795 | \ 'violet', |
| 796 | \ 'wheat', |
| 797 | \ 'wheat1', |
| 798 | \ 'wheat2', |
| 799 | \ 'wheat3', |
| 800 | \ 'wheat4', |
| 801 | \ 'white smoke', |
| 802 | \ 'white', |
| 803 | \ 'yellow green', |
| 804 | \ 'yellow', |
| 805 | \ 'yellow1', |
| 806 | \ 'yellow2', |
| 807 | \ 'yellow3', |
| 808 | \ 'yellow4', |
| 809 | \ ] |
| 810 | for color in colors |
| 811 | " just test that the color name can be found. |
| 812 | exe "hi Mine guifg='" . color . "'" |
| 813 | endfor |
| 814 | |
| 815 | " case is ignored |
| 816 | hi Mine guifg=blanchedalmond |
| 817 | hi Mine guifg=BLANCHEDALMOND |
| 818 | endfunc |