comparison src/syntax.c @ 844:d3bbb5dd3913 v7.0f02

updated for version 7.0f02
author vimboss
date Thu, 27 Apr 2006 00:02:13 +0000
parents 2c885fab04e3
children ddafd2ba3a86
comparison
equal deleted inserted replaced
843:9f279ebda751 844:d3bbb5dd3913
6325 pp = highlight_init_dark; 6325 pp = highlight_init_dark;
6326 for (i = 0; pp[i] != NULL; ++i) 6326 for (i = 0; pp[i] != NULL; ++i)
6327 do_highlight((char_u *)pp[i], reset, TRUE); 6327 do_highlight((char_u *)pp[i], reset, TRUE);
6328 6328
6329 /* Reverse looks ugly, but grey may not work for 8 colors. Thus let it 6329 /* Reverse looks ugly, but grey may not work for 8 colors. Thus let it
6330 * depend on the number of colors available. */ 6330 * depend on the number of colors available.
6331 * With 8 colors brown is equal to yellow, need to use black for Search fg
6332 * to avoid Statement highlighted text disappears. */
6331 if (t_colors > 8) 6333 if (t_colors > 8)
6332 do_highlight((char_u *)(*p_bg == 'l' ? "Visual ctermbg=LightGrey" 6334 do_highlight((char_u *)(*p_bg == 'l' ? "Visual ctermbg=LightGrey"
6333 : "Visual ctermbg=DarkGrey"), FALSE, TRUE); 6335 : "Visual ctermbg=DarkGrey"), FALSE, TRUE);
6334 else 6336 else
6337 {
6335 do_highlight((char_u *)"Visual cterm=reverse", FALSE, TRUE); 6338 do_highlight((char_u *)"Visual cterm=reverse", FALSE, TRUE);
6339 if (*p_bg == 'l')
6340 do_highlight((char_u *)"Search ctermfg=black", FALSE, TRUE);
6341 }
6336 6342
6337 #ifdef FEAT_SYN_HL 6343 #ifdef FEAT_SYN_HL
6338 /* 6344 /*
6339 * If syntax highlighting is enabled load the highlighting for it. 6345 * If syntax highlighting is enabled load the highlighting for it.
6340 */ 6346 */