Lines Matching refs:sgp
2894 hl_group_T *sgp; in highlight_list_one() local
2897 sgp = &HL_TABLE()[id - 1]; // index is ID minus one in highlight_list_one()
2899 if (message_filtered(sgp->sg_name)) in highlight_list_one()
2903 sgp->sg_term, NULL, "term"); in highlight_list_one()
2905 0, sgp->sg_start, "start"); in highlight_list_one()
2907 0, sgp->sg_stop, "stop"); in highlight_list_one()
2910 sgp->sg_cterm, NULL, "cterm"); in highlight_list_one()
2912 sgp->sg_cterm_fg, NULL, "ctermfg"); in highlight_list_one()
2914 sgp->sg_cterm_bg, NULL, "ctermbg"); in highlight_list_one()
2916 sgp->sg_cterm_ul, NULL, "ctermul"); in highlight_list_one()
2920 sgp->sg_gui, NULL, "gui"); in highlight_list_one()
2922 0, sgp->sg_gui_fg_name, "guifg"); in highlight_list_one()
2924 0, sgp->sg_gui_bg_name, "guibg"); in highlight_list_one()
2926 0, sgp->sg_gui_sp_name, "guisp"); in highlight_list_one()
2930 0, sgp->sg_font_name, "font"); in highlight_list_one()
2933 if (sgp->sg_link && !got_int) in highlight_list_one()
2946 last_set_msg(sgp->sg_script_ctx); in highlight_list_one()
3217 hl_group_T *sgp = HL_TABLE() + idx; in set_hl_attr() local
3220 if (sgp->sg_name_u != NULL && STRCMP(sgp->sg_name_u, "NORMAL") == 0) in set_hl_attr()
3226 if (sgp->sg_gui_fg == INVALCOLOR in set_hl_attr()
3227 && sgp->sg_gui_bg == INVALCOLOR in set_hl_attr()
3228 && sgp->sg_gui_sp == INVALCOLOR in set_hl_attr()
3229 && sgp->sg_font == NOFONT in set_hl_attr()
3231 && sgp->sg_fontset == NOFONTSET in set_hl_attr()
3235 sgp->sg_gui_attr = sgp->sg_gui; in set_hl_attr()
3239 at_en.ae_attr = sgp->sg_gui; in set_hl_attr()
3240 at_en.ae_u.gui.fg_color = sgp->sg_gui_fg; in set_hl_attr()
3241 at_en.ae_u.gui.bg_color = sgp->sg_gui_bg; in set_hl_attr()
3242 at_en.ae_u.gui.sp_color = sgp->sg_gui_sp; in set_hl_attr()
3243 at_en.ae_u.gui.font = sgp->sg_font; in set_hl_attr()
3245 at_en.ae_u.gui.fontset = sgp->sg_fontset; in set_hl_attr()
3247 sgp->sg_gui_attr = get_attr_entry(&gui_attr_table, &at_en); in set_hl_attr()
3252 if (sgp->sg_start == NULL && sgp->sg_stop == NULL) in set_hl_attr()
3253 sgp->sg_term_attr = sgp->sg_term; in set_hl_attr()
3256 at_en.ae_attr = sgp->sg_term; in set_hl_attr()
3257 at_en.ae_u.term.start = sgp->sg_start; in set_hl_attr()
3258 at_en.ae_u.term.stop = sgp->sg_stop; in set_hl_attr()
3259 sgp->sg_term_attr = get_attr_entry(&term_attr_table, &at_en); in set_hl_attr()
3264 if (sgp->sg_cterm_fg == 0 && sgp->sg_cterm_bg == 0 && sgp->sg_cterm_ul == 0 in set_hl_attr()
3266 && sgp->sg_gui_fg == INVALCOLOR in set_hl_attr()
3267 && sgp->sg_gui_bg == INVALCOLOR in set_hl_attr()
3268 && sgp->sg_gui_sp == INVALCOLOR in set_hl_attr()
3271 sgp->sg_cterm_attr = sgp->sg_cterm; in set_hl_attr()
3274 at_en.ae_attr = sgp->sg_cterm; in set_hl_attr()
3275 at_en.ae_u.cterm.fg_color = sgp->sg_cterm_fg; in set_hl_attr()
3276 at_en.ae_u.cterm.bg_color = sgp->sg_cterm_bg; in set_hl_attr()
3277 at_en.ae_u.cterm.ul_color = sgp->sg_cterm_ul; in set_hl_attr()
3292 if (sgp->sg_gui_fg == INVALCOLOR) in set_hl_attr()
3293 sgp->sg_gui_fg = fg; in set_hl_attr()
3294 if (sgp->sg_gui_bg == INVALCOLOR) in set_hl_attr()
3295 sgp->sg_gui_bg = bg; in set_hl_attr()
3300 at_en.ae_u.cterm.fg_rgb = GUI_MCH_GET_RGB2(sgp->sg_gui_fg); in set_hl_attr()
3301 at_en.ae_u.cterm.bg_rgb = GUI_MCH_GET_RGB2(sgp->sg_gui_bg); in set_hl_attr()
3304 if (sgp->sg_cterm & (HL_UNDERLINE | HL_UNDERCURL)) in set_hl_attr()
3305 at_en.ae_u.cterm.ul_rgb = GUI_MCH_GET_RGB2(sgp->sg_gui_sp); in set_hl_attr()
3317 sgp->sg_cterm_attr = get_attr_entry(&cterm_attr_table, &at_en); in set_hl_attr()
3514 hl_group_T *sgp; in syn_id2attr() local
3517 sgp = &HL_TABLE()[hl_id - 1]; // index is ID minus one in syn_id2attr()
3522 attr = sgp->sg_gui_attr; in syn_id2attr()
3526 attr = sgp->sg_cterm_attr; in syn_id2attr()
3528 attr = sgp->sg_term_attr; in syn_id2attr()
3541 hl_group_T *sgp; in syn_id2colors() local
3544 sgp = &HL_TABLE()[hl_id - 1]; // index is ID minus one in syn_id2colors()
3546 *fgp = sgp->sg_gui_fg; in syn_id2colors()
3547 *bgp = sgp->sg_gui_bg; in syn_id2colors()
3548 return sgp->sg_gui; in syn_id2colors()
3559 hl_group_T *sgp; in syn_id2cterm_bg() local
3562 sgp = &HL_TABLE()[hl_id - 1]; // index is ID minus one in syn_id2cterm_bg()
3563 *fgp = sgp->sg_cterm_fg - 1; in syn_id2cterm_bg()
3564 *bgp = sgp->sg_cterm_bg - 1; in syn_id2cterm_bg()
3575 hl_group_T *sgp; in syn_get_final_id() local
3584 sgp = &HL_TABLE()[hl_id - 1]; // index is ID minus one in syn_get_final_id()
3585 if (sgp->sg_link == 0 || sgp->sg_link > highlight_ga.ga_len) in syn_get_final_id()
3587 hl_id = sgp->sg_link; in syn_get_final_id()
4094 hl_group_T *sgp; in highlight_get_info() local
4102 sgp = &HL_TABLE()[hl_idx]; in highlight_get_info()
4106 if (dict_add_string(dict, "name", sgp->sg_name) == FAIL) in highlight_get_info()
4111 if (sgp->sg_link && resolve_link) in highlight_get_info()
4114 while (sgp->sg_link) in highlight_get_info()
4116 hlgid = sgp->sg_link; in highlight_get_info()
4117 sgp = &HL_TABLE()[sgp->sg_link - 1]; in highlight_get_info()
4121 if (sgp->sg_term != 0) in highlight_get_info()
4123 attr_dict = highlight_get_attr_dict(sgp->sg_term); in highlight_get_info()
4128 if (sgp->sg_start != NULL) in highlight_get_info()
4129 if (dict_add_string(dict, "start", sgp->sg_start) == FAIL) in highlight_get_info()
4131 if (sgp->sg_stop != NULL) in highlight_get_info()
4132 if (dict_add_string(dict, "stop", sgp->sg_stop) == FAIL) in highlight_get_info()
4134 if (sgp->sg_cterm != 0) in highlight_get_info()
4136 attr_dict = highlight_get_attr_dict(sgp->sg_cterm); in highlight_get_info()
4141 if (sgp->sg_cterm_fg != 0) in highlight_get_info()
4145 if (sgp->sg_cterm_bg != 0) in highlight_get_info()
4149 if (sgp->sg_cterm_ul != 0) in highlight_get_info()
4153 if (sgp->sg_gui != 0) in highlight_get_info()
4155 attr_dict = highlight_get_attr_dict(sgp->sg_gui); in highlight_get_info()
4160 if (sgp->sg_gui_fg_name != NULL) in highlight_get_info()
4164 if (sgp->sg_gui_bg_name != NULL) in highlight_get_info()
4168 if (sgp->sg_gui_sp_name != NULL) in highlight_get_info()
4173 if (sgp->sg_font_name != NULL) in highlight_get_info()
4174 if (dict_add_string(dict, "font", sgp->sg_font_name) == FAIL) in highlight_get_info()
4177 if (sgp->sg_link) in highlight_get_info()
4181 link = HL_TABLE()[sgp->sg_link - 1].sg_name; in highlight_get_info()
4185 if (sgp->sg_deflink) in highlight_get_info()