Mercurial > vim
diff src/syntax.c @ 19892:5feb426d2ea1 v8.2.0502
patch 8.2.0502: Vim9: some code is not tested
Commit: https://github.com/vim/vim/commit/e8c4abbbd711af8fd3ed85ea69e9ac3d63a0d879
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 2 21:13:25 2020 +0200
patch 8.2.0502: Vim9: some code is not tested
Problem: Vim9: some code is not tested.
Solution: Add more tests. Fix uncovered problems.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Apr 2020 21:15:04 +0200 |
parents | 94eda51ba9ba |
children | 3ff714d765ba |
line wrap: on
line diff
--- a/src/syntax.c +++ b/src/syntax.c @@ -5598,7 +5598,7 @@ get_syn_pattern(char_u *arg, synpat_T *c if (arg == NULL || arg[0] == NUL || arg[1] == NUL || arg[2] == NUL) return NULL; - end = skip_regexp(arg + 1, *arg, TRUE, NULL); + end = skip_regexp(arg + 1, *arg, TRUE); if (*end != *arg) // end delimiter not found { semsg(_("E401: Pattern delimiter not found: %s"), arg); @@ -5775,7 +5775,7 @@ syn_cmd_sync(exarg_T *eap, int syncing U finished = TRUE; break; } - arg_end = skip_regexp(next_arg + 1, *next_arg, TRUE, NULL); + arg_end = skip_regexp(next_arg + 1, *next_arg, TRUE); if (*arg_end != *next_arg) // end delimiter not found { illegal = TRUE;