diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2022-03-18 14:57:41 +0000 | 
|---|---|---|
| committer | Lewis Russell <lewis6991@gmail.com> | 2022-03-20 22:01:56 +0000 | 
| commit | 3c62a3f9ddc6a2cc805bc2f5837abd041949779d (patch) | |
| tree | c843898ae7098a90d437063f52f5ad992f74582e /src/nvim/ex_docmd.c | |
| parent | 6566a4bdbd800ff1850a001a5c40f65b3dc13e46 (diff) | |
| download | rneovim-3c62a3f9ddc6a2cc805bc2f5837abd041949779d.tar.gz rneovim-3c62a3f9ddc6a2cc805bc2f5837abd041949779d.tar.bz2 rneovim-3c62a3f9ddc6a2cc805bc2f5837abd041949779d.zip  | |
vim-patch:8.1.1742: still some match functions in evalfunc.c
Problem:    Still some match functions in evalfunc.c.
Solution:   Move them to highlight.c.
https://github.com/vim/vim/commit/7dfb016d25e3e3e1f4411026dda21d1536f21acc
Diffstat (limited to 'src/nvim/ex_docmd.c')
| -rw-r--r-- | src/nvim/ex_docmd.c | 64 | 
1 files changed, 0 insertions, 64 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 511dd44c9f..a5732a006d 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -9541,70 +9541,6 @@ static void ex_nohlsearch(exarg_T *eap)    redraw_all_later(SOME_VALID);  } -/// ":[N]match {group} {pattern}" -/// Sets nextcmd to the start of the next command, if any.  Also called when -/// skipping commands to find the next command. -static void ex_match(exarg_T *eap) -{ -  char_u *p; -  char_u *g = NULL; -  char_u *end; -  int c; -  int id; - -  if (eap->line2 <= 3) { -    id = eap->line2; -  } else { -    emsg(e_invcmd); -    return; -  } - -  // First clear any old pattern. -  if (!eap->skip) { -    match_delete(curwin, id, false); -  } - -  if (ends_excmd(*eap->arg)) { -    end = eap->arg; -  } else if ((STRNICMP(eap->arg, "none", 4) == 0 -              && (ascii_iswhite(eap->arg[4]) || ends_excmd(eap->arg[4])))) { -    end = eap->arg + 4; -  } else { -    p = skiptowhite(eap->arg); -    if (!eap->skip) { -      g = vim_strnsave(eap->arg, p - eap->arg); -    } -    p = skipwhite(p); -    if (*p == NUL) { -      // There must be two arguments. -      xfree(g); -      semsg(_(e_invarg2), eap->arg); -      return; -    } -    end = skip_regexp(p + 1, *p, true, NULL); -    if (!eap->skip) { -      if (*end != NUL && !ends_excmd(*skipwhite(end + 1))) { -        xfree(g); -        eap->errmsg = e_trailing; -        return; -      } -      if (*end != *p) { -        xfree(g); -        semsg(_(e_invarg2), p); -        return; -      } - -      c = *end; -      *end = NUL; -      match_add(curwin, (const char *)g, (const char *)p + 1, 10, id, -                NULL, NULL); -      xfree(g); -      *end = c; -    } -  } -  eap->nextcmd = find_nextcmd(end); -} -  static void ex_fold(exarg_T *eap)  {    if (foldManualAllowed(true)) {  | 
