Lines Matching refs:spp

328 static void syn_add_end_off(lpos_T *result, regmmatch_T *regmatch, synpat_T *spp, int idx, int extr…
329 static void syn_add_start_off(lpos_T *result, regmmatch_T *regmatch, synpat_T *spp, int idx, int ex…
343 static void put_pattern(char *s, int c, synpat_T *spp, int attr);
612 synpat_T *spp; in syn_sync() local
778 spp = &(SYN_ITEMS(syn_block)[cur_si->si_idx]); in syn_sync()
779 found_flags = spp->sp_flags; in syn_sync()
780 found_match_idx = spp->sp_sync_idx; in syn_sync()
1771 synpat_T *spp; in syn_current_attr() local
1960 spp = &(SYN_ITEMS(syn_block)[idx]); in syn_current_attr()
1961 if ( spp->sp_syncing == syncing in syn_current_attr()
1962 && (displaying || !(spp->sp_flags & HL_DISPLAY)) in syn_current_attr()
1963 && (spp->sp_type == SPTYPE_MATCH in syn_current_attr()
1964 || spp->sp_type == SPTYPE_START) in syn_current_attr()
1967 &spp->sp_syn, 0) in syn_current_attr()
1969 ? !(spp->sp_flags & HL_CONTAINED) in syn_current_attr()
1971 cur_si->si_cont_list, &spp->sp_syn, in syn_current_attr()
1972 spp->sp_flags & HL_CONTAINED)))) in syn_current_attr()
1979 if (spp->sp_line_id == current_line_id in syn_current_attr()
1980 && spp->sp_startcol >= next_match_col) in syn_current_attr()
1982 spp->sp_line_id = current_line_id; in syn_current_attr()
1984 lc_col = current_col - spp->sp_offsets[SPO_LC_OFF]; in syn_current_attr()
1988 regmatch.rmm_ic = spp->sp_ic; in syn_current_attr()
1989 regmatch.regprog = spp->sp_prog; in syn_current_attr()
1993 IF_SYN_TIME(&spp->sp_time)); in syn_current_attr()
1994 spp->sp_prog = regmatch.regprog; in syn_current_attr()
1998 spp->sp_startcol = MAXCOL; in syn_current_attr()
2006 spp, SPO_MS_OFF, -1); in syn_current_attr()
2011 spp->sp_startcol = MAXCOL; in syn_current_attr()
2018 spp->sp_startcol = startcol; in syn_current_attr()
2043 spp, SPO_HS_OFF, -1); in syn_current_attr()
2048 spp, SPO_RS_OFF, 0); in syn_current_attr()
2070 if (spp->sp_type == SPTYPE_START in syn_current_attr()
2071 && (spp->sp_flags & HL_ONELINE)) in syn_current_attr()
2087 else if (spp->sp_type == SPTYPE_MATCH) in syn_current_attr()
2089 syn_add_end_off(&hl_endpos, &regmatch, spp, in syn_current_attr()
2091 syn_add_end_off(&endpos, &regmatch, spp, in syn_current_attr()
2374 synpat_T *spp; in push_next_match() local
2379 spp = &(SYN_ITEMS(syn_block)[next_match_idx]); in push_next_match()
2394 cur_si->si_flags = spp->sp_flags; in push_next_match()
2397 cur_si->si_cchar = spp->sp_cchar; in push_next_match()
2402 cur_si->si_next_list = spp->sp_next_list; in push_next_match()
2404 if (spp->sp_type == SPTYPE_START && !(spp->sp_flags & HL_ONELINE)) in push_next_match()
2431 if ( spp->sp_type == SPTYPE_START in push_next_match()
2432 && spp->sp_syn_match_id != 0 in push_next_match()
2573 synpat_T *spp; in update_si_attr() local
2579 spp = &(SYN_ITEMS(syn_block)[sip->si_idx]); in update_si_attr()
2581 sip->si_id = spp->sp_syn_match_id; in update_si_attr()
2583 sip->si_id = spp->sp_syn.id; in update_si_attr()
2589 sip->si_cont_list = spp->sp_cont_list; in update_si_attr()
2596 if ((spp->sp_flags & HL_TRANSP) && !(sip->si_flags & HL_MATCH)) in update_si_attr()
2799 synpat_T *spp, *spp_skip; in find_endpos() local
2818 spp = &(SYN_ITEMS(syn_block)[idx]); in find_endpos()
2819 if (spp->sp_type != SPTYPE_START) in find_endpos()
2830 spp = &(SYN_ITEMS(syn_block)[idx]); in find_endpos()
2831 if (spp->sp_type != SPTYPE_START) in find_endpos()
2839 if (spp->sp_type == SPTYPE_SKIP) in find_endpos()
2841 spp_skip = spp; in find_endpos()
2869 spp = &(SYN_ITEMS(syn_block)[idx]); in find_endpos()
2870 if (spp->sp_type != SPTYPE_END) // past last END pattern in find_endpos()
2872 lc_col -= spp->sp_offsets[SPO_LC_OFF]; in find_endpos()
2876 regmatch.rmm_ic = spp->sp_ic; in find_endpos()
2877 regmatch.regprog = spp->sp_prog; in find_endpos()
2879 IF_SYN_TIME(&spp->sp_time)); in find_endpos()
2880 spp->sp_prog = regmatch.regprog; in find_endpos()
2956 spp = &(SYN_ITEMS(syn_block)[best_idx]); in find_endpos()
2957 syn_add_end_off(m_endpos, &best_regmatch, spp, SPO_ME_OFF, 1); in find_endpos()
2962 syn_add_end_off(end_endpos, &best_regmatch, spp, SPO_HE_OFF, 1); in find_endpos()
2973 if (spp->sp_syn_match_id != spp->sp_syn.id && spp->sp_syn_match_id != 0) in find_endpos()
2976 if (spp->sp_off_flags & (1 << (SPO_RE_OFF + SPO_COUNT))) in find_endpos()
2986 hl_endpos->col += spp->sp_offsets[SPO_RE_OFF]; in find_endpos()
3004 *flagsp = spp->sp_flags; in find_endpos()
3054 synpat_T *spp, // matched pattern in syn_add_end_off() argument
3063 if (spp->sp_off_flags & (1 << idx)) in syn_add_end_off()
3067 off = spp->sp_offsets[idx] + extra; in syn_add_end_off()
3073 off = spp->sp_offsets[idx]; in syn_add_end_off()
3106 synpat_T *spp, in syn_add_start_off() argument
3115 if (spp->sp_off_flags & (1 << (idx + SPO_COUNT))) in syn_add_start_off()
3119 off = spp->sp_offsets[idx] + extra; in syn_add_start_off()
3125 off = spp->sp_offsets[idx]; in syn_add_start_off()
3613 synpat_T *spp; in syn_remove_pattern() local
3615 spp = &(SYN_ITEMS(block)[idx]); in syn_remove_pattern()
3617 if (spp->sp_flags & HL_FOLD) in syn_remove_pattern()
3621 mch_memmove(spp, spp + 1, in syn_remove_pattern()
3745 synpat_T *spp; in syn_clear_one() local
3758 spp = &(SYN_ITEMS(curwin->w_s)[idx]); in syn_clear_one()
3759 if (spp->sp_syn.id != id || spp->sp_syncing != syncing) in syn_clear_one()
3995 synpat_T *spp; in syn_list_one() local
4033 spp = &(SYN_ITEMS(curwin->w_s)[idx]); in syn_list_one()
4034 if (spp->sp_syn.id != id || spp->sp_syncing != syncing) in syn_list_one()
4040 if (spp->sp_type == SPTYPE_MATCH) in syn_list_one()
4042 put_pattern("match", ' ', spp, attr); in syn_list_one()
4045 else if (spp->sp_type == SPTYPE_START) in syn_list_one()
4057 syn_list_flags(namelist1, spp->sp_flags, attr); in syn_list_one()
4059 if (spp->sp_cont_list != NULL) in syn_list_one()
4060 put_id_list((char_u *)"contains", spp->sp_cont_list, attr); in syn_list_one()
4062 if (spp->sp_syn.cont_in_list != NULL) in syn_list_one()
4064 spp->sp_syn.cont_in_list, attr); in syn_list_one()
4066 if (spp->sp_next_list != NULL) in syn_list_one()
4068 put_id_list((char_u *)"nextgroup", spp->sp_next_list, attr); in syn_list_one()
4069 syn_list_flags(namelist2, spp->sp_flags, attr); in syn_list_one()
4071 if (spp->sp_flags & (HL_SYNC_HERE|HL_SYNC_THERE)) in syn_list_one()
4073 if (spp->sp_flags & HL_SYNC_HERE) in syn_list_one()
4078 if (spp->sp_sync_idx >= 0) in syn_list_one()
4080 [spp->sp_sync_idx].sp_syn.id - 1)); in syn_list_one()
4183 synpat_T *spp, in put_pattern() argument
4193 if (last_matchgroup != spp->sp_syn_match_id) in put_pattern()
4195 last_matchgroup = spp->sp_syn_match_id; in put_pattern()
4210 for (i = 0; vim_strchr(spp->sp_pattern, sepchars[i]) != NULL; ) in put_pattern()
4217 msg_outtrans(spp->sp_pattern); in put_pattern()
4225 if (spp->sp_off_flags & (mask + (mask << SPO_COUNT))) in put_pattern()
4230 n = spp->sp_offsets[i]; in put_pattern()
4233 if (spp->sp_off_flags & mask) in put_pattern()
6654 synpat_T *spp; in syntime_clear() local
6663 spp = &(SYN_ITEMS(curwin->w_s)[idx]); in syntime_clear()
6664 syn_clear_time(&spp->sp_time); in syntime_clear()
6712 synpat_T *spp; in syntime_report() local
6732 spp = &(SYN_ITEMS(curwin->w_s)[idx]); in syntime_report()
6733 if (spp->sp_time.count > 0) in syntime_report()
6737 p->total = spp->sp_time.total; in syntime_report()
6738 profile_add(&total_total, &spp->sp_time.total); in syntime_report()
6739 p->count = spp->sp_time.count; in syntime_report()
6740 p->match = spp->sp_time.match; in syntime_report()
6741 total_count += spp->sp_time.count; in syntime_report()
6742 p->slowest = spp->sp_time.slowest; in syntime_report()
6744 profile_divide(&spp->sp_time.total, spp->sp_time.count, &tm); in syntime_report()
6747 p->id = spp->sp_syn.id; in syntime_report()
6748 p->pattern = spp->sp_pattern; in syntime_report()