| /vim-8.2.3635/src/ |
| H A D | regexp.c | 1352 prog = REG_MULTI ? rex.reg_mmatch->regprog : rex.reg_match->regprog; in prog_magic_wrong() 2782 if (rmp->regprog->re_in_use) in vim_regexec_string() 2811 vim_regfree(rmp->regprog); in vim_regexec_string() 2818 if (rmp->regprog != NULL) in vim_regexec_string() 2820 rmp->regprog->re_in_use = TRUE; in vim_regexec_string() 2851 regmatch.regprog = *prog; in vim_regexec_prog() 2854 *prog = regmatch.regprog; in vim_regexec_prog() 2903 if (rmp->regprog->re_in_use) in vim_regexec_multi() 2928 vim_regfree(rmp->regprog); in vim_regexec_multi() 2944 if (rmp->regprog != NULL) in vim_regexec_multi() [all …]
|
| H A D | match.c | 41 regprog_T *regprog = NULL; in match_add() local 93 m->match.regprog = regprog; in match_add() 256 vim_regfree(cur->match.regprog); in match_delete() 491 if (shl->rm.regprog != NULL) in next_search_hl() 497 && cur->match.regprog == cur->hl.rm.regprog); in next_search_hl() 510 cur->match.regprog = cur->hl.rm.regprog; in next_search_hl() 518 vim_regfree(shl->rm.regprog); in next_search_hl() 521 shl->rm.regprog = NULL; in next_search_hl() 575 if (shl->rm.regprog != NULL in prepare_search_hl() 577 && re_multiline(shl->rm.regprog)) in prepare_search_hl() [all …]
|
| H A D | regexp.h | 49 typedef struct regprog struct 133 regprog_T *regprog; member 149 regprog_T *regprog; member
|
| H A D | search.c | 189 if (regmatch->regprog == NULL) in search_regcomp() 576 regmatch->regprog = NULL; in last_pat_prog() 756 if (regmatch.regprog == NULL) in searchit() 1071 if (regmatch.regprog == NULL) in searchit() 1119 vim_regfree(regmatch.regprog); in searchit() 2929 } while (regmatch.regprog != NULL in is_zero_width() 2941 vim_regfree(regmatch.regprog); in is_zero_width() 3370 regmatch.regprog = NULL; in find_pattern_in_path() 3371 incl_regmatch.regprog = NULL; in find_pattern_in_path() 3372 def_regmatch.regprog = NULL; in find_pattern_in_path() [all …]
|
| H A D | indent.c | 834 regmatch.regprog = vim_regcomp(curbuf->b_p_flp, RE_MAGIC); in get_number_indent() 835 if (regmatch.regprog != NULL) in get_number_indent() 847 vim_regfree(regmatch.regprog); in get_number_indent() 963 regmatch.regprog = vim_regcomp(curbuf->b_p_flp, in get_breakindent_win() 965 if (regmatch.regprog != NULL) in get_breakindent_win() 975 vim_regfree(regmatch.regprog); in get_breakindent_win()
|
| H A D | cmdhist.c | 460 regmatch.regprog = NULL; in del_history_entry() 467 && (regmatch.regprog = vim_regcomp(str, RE_MAGIC + RE_STRING)) in del_history_entry() 498 vim_regfree(regmatch.regprog); in del_history_entry()
|
| H A D | ex_cmds.c | 402 regmatch.regprog = NULL; in ex_sort() 458 else if (!ASCII_ISALPHA(*p) && regmatch.regprog == NULL) in ex_sort() 472 regmatch.regprog = vim_regcomp(last_search_pat(), RE_MAGIC); in ex_sort() 475 regmatch.regprog = vim_regcomp(p + 1, RE_MAGIC); in ex_sort() 476 if (regmatch.regprog == NULL) in ex_sort() 527 if (regmatch.regprog != NULL) in ex_sort() 593 if (regmatch.regprog != NULL) in ex_sort() 665 vim_regfree(regmatch.regprog); in ex_sort() 4621 && !re_multiline(regmatch.regprog))); in ex_substitute() 4791 vim_regfree(regmatch.regprog); in ex_substitute() [all …]
|
| H A D | filepath.c | 3437 regmatch.regprog = vim_regcomp(pat, RE_MAGIC); in dos_expandpath() 3442 if (regmatch.regprog == NULL && (flags & EW_NOTWILD) == 0) in dos_expandpath() 3490 || (regmatch.regprog != NULL in dos_expandpath() 3538 vim_regfree(regmatch.regprog); in dos_expandpath() 3685 regmatch.regprog = vim_regcomp(pat, RE_MAGIC); in unix_expandpath() 3690 if (regmatch.regprog == NULL && (flags & EW_NOTWILD) == 0) in unix_expandpath() 3723 && ((regmatch.regprog != NULL && vim_regexec(®match, in unix_expandpath() 3782 vim_regfree(regmatch.regprog); in unix_expandpath()
|
| H A D | syntax.c | 905 regmatch.regprog = syn_block->b_syn_linecont_prog; in syn_match_linecont() 908 syn_block->b_syn_linecont_prog = regmatch.regprog; in syn_match_linecont() 1989 regmatch.regprog = spp->sp_prog; in syn_current_attr() 1994 spp->sp_prog = regmatch.regprog; in syn_current_attr() 2877 regmatch.regprog = spp->sp_prog; in find_endpos() 2880 spp->sp_prog = regmatch.regprog; in find_endpos() 2912 regmatch.regprog = spp_skip->sp_prog; in find_endpos() 2915 spp_skip->sp_prog = regmatch.regprog; in find_endpos() 3183 if (rmp->regprog == NULL) in syn_regexec() 6027 if (regmatch.regprog == NULL) in get_id_list() [all …]
|
| H A D | arglist.c | 438 regmatch.regprog = vim_regcomp(p, magic_isset() ? RE_MAGIC : 0); in do_arglist() 439 if (regmatch.regprog == NULL) in do_arglist() 460 vim_regfree(regmatch.regprog); in do_arglist()
|
| H A D | drawscreen.c | 291 screen_search_hl.rm.regprog = NULL; in update_screen() 1596 if (screen_search_hl.rm.regprog != NULL in win_update() 1597 && re_multiline(screen_search_hl.rm.regprog)) in win_update() 1605 if (cur->match.regprog != NULL in win_update() 1606 && re_multiline(cur->match.regprog)) in win_update()
|
| H A D | tag.c | 1282 pats->regmatch.regprog = vim_regcomp(pats->pat, in prepare_pats() 1285 pats->regmatch.regprog = NULL; in prepare_pats() 1683 orgpat.regmatch.regprog = NULL; in find_tags() 1753 if (has_re && orgpat.regmatch.regprog == NULL) in find_tags() 2438 if (!match && orgpat.regmatch.regprog != NULL) in find_tags() 2768 vim_regfree(orgpat.regmatch.regprog); in find_tags()
|
| H A D | ex_eval.c | 1784 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in ex_catch() 1790 if (regmatch.regprog == NULL) in ex_catch() 1804 vim_regfree(regmatch.regprog); in ex_catch()
|
| H A D | quickfix.c | 1254 regmatch.regprog = fmt_ptr->prog; in qf_parse_get_fields() 1256 fmt_ptr->prog = regmatch.regprog; in qf_parse_get_fields() 5807 regmatch->regprog = NULL; in vgr_init_regmatch() 5817 regmatch->regprog = vim_regcomp(last_search_pat(), RE_MAGIC); in vgr_init_regmatch() 5820 regmatch->regprog = vim_regcomp(s, RE_MAGIC); in vgr_init_regmatch() 6097 args->regmatch.regprog = NULL; in vgr_process_args() 6114 if (args->regmatch.regprog == NULL) in vgr_process_args() 6416 vim_regfree(args.regmatch.regprog); in ex_vimgrep() 8229 regmatch.regprog = vim_regcomp(eap->arg, RE_MAGIC + RE_STRING); in ex_helpgrep() 8231 if (regmatch.regprog != NULL) in ex_helpgrep() [all …]
|
| H A D | buffer.c | 2624 regmatch.regprog = vim_regcomp(p, magic_isset() ? RE_MAGIC : 0); in buflist_findpat() 2625 if (regmatch.regprog == NULL) in buflist_findpat() 2658 vim_regfree(regmatch.regprog); in buflist_findpat() 2737 regmatch.regprog = vim_regcomp(patc + attempt * 11, RE_MAGIC); in ExpandBufnames() 2738 if (regmatch.regprog == NULL) in ExpandBufnames() 2793 vim_regfree(regmatch.regprog); in ExpandBufnames() 2804 vim_regfree(regmatch.regprog); in ExpandBufnames()
|
| H A D | insexpand.c | 1208 regmatch.regprog = NULL; // so that we can goto theend in ins_compl_dictionaries() 1233 regmatch.regprog = vim_regcomp(ptr, RE_MAGIC); in ins_compl_dictionaries() 1239 regmatch.regprog = vim_regcomp(pat, magic_isset() ? RE_MAGIC : 0); in ins_compl_dictionaries() 1240 if (regmatch.regprog == NULL) in ins_compl_dictionaries() 1297 vim_regfree(regmatch.regprog); in ins_compl_dictionaries()
|
| H A D | findfile.c | 2455 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in uniquefy_paths() 2457 if (regmatch.regprog == NULL) in uniquefy_paths() 2590 vim_regfree(regmatch.regprog); in uniquefy_paths()
|
| H A D | fileio.c | 5357 regmatch.regprog = *prog; in match_file_pat() 5359 regmatch.regprog = vim_regcomp(pattern, RE_MAGIC); in match_file_pat() 5367 if (regmatch.regprog != NULL in match_file_pat() 5376 *prog = regmatch.regprog; in match_file_pat() 5378 vim_regfree(regmatch.regprog); in match_file_pat()
|
| H A D | eval.c | 1959 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in pattern_match() 1960 if (regmatch.regprog != NULL) in pattern_match() 1964 vim_regfree(regmatch.regprog); in pattern_match() 6372 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in do_string_sub() 6373 if (regmatch.regprog != NULL) in do_string_sub() 6427 vim_regfree(regmatch.regprog); in do_string_sub()
|
| H A D | spell.c | 325 regmatch.regprog = wp->w_s->b_cap_prog; in spell_check() 328 wp->w_s->b_cap_prog = regmatch.regprog; in spell_check() 2844 regmatch.regprog = curwin->w_s->b_cap_prog; in check_need_cap() 2859 curwin->w_s->b_cap_prog = regmatch.regprog; in check_need_cap()
|
| H A D | cmdexpand.c | 2087 regmatch.regprog = vim_regcomp(pat, magic_isset() ? RE_MAGIC : 0); in ExpandFromContext() 2088 if (regmatch.regprog == NULL) in ExpandFromContext() 2176 vim_regfree(regmatch.regprog); in ExpandFromContext()
|
| H A D | ex_docmd.c | 2937 cmod->cmod_filter_regmatch.regprog = in parse_command_modifiers() 2939 if (cmod->cmod_filter_regmatch.regprog == NULL) in parse_command_modifiers() 3085 || cmod->cmod_filter_regmatch.regprog != NULL; in has_cmdmod() 3179 vim_regfree(cmod->cmod_filter_regmatch.regprog); in undo_cmdmod() 6835 regmatch.regprog = vim_regcomp(eap->arg, magic_isset() ? RE_MAGIC : 0); in ex_open() 6836 if (regmatch.regprog != NULL) in ex_open() 6844 vim_regfree(regmatch.regprog); in ex_open()
|
| H A D | screen.c | 1773 if (screen_search_hl.rm.regprog != NULL) in end_search_hl() 1775 vim_regfree(screen_search_hl.rm.regprog); in end_search_hl() 1776 screen_search_hl.rm.regprog = NULL; in end_search_hl()
|
| H A D | gui.c | 5393 regmatch.regprog = vim_regcomp(ga.ga_data, RE_MAGIC + RE_STRING); in gui_do_findrepl() 5395 if (regmatch.regprog != NULL) in gui_do_findrepl() 5417 vim_regfree(regmatch.regprog); in gui_do_findrepl()
|
| H A D | evalfunc.c | 6965 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in find_some_match() 6966 if (regmatch.regprog != NULL) in find_some_match() 7072 vim_regfree(regmatch.regprog); in find_some_match() 9463 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); in f_split() 9464 if (regmatch.regprog != NULL) in f_split() 9495 vim_regfree(regmatch.regprog); in f_split()
|