diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-05 21:30:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-05 21:30:37 +0200 |
commit | 2976c028ca65631825581dcd4e36b56ddc1ae82d (patch) | |
tree | 8fafacebdba6c8d43dd2552c14da819b8d5ea591 /src/regexp.c | |
parent | c19b4b50a800c9866df4de0d30a25dc9d9af4939 (diff) | |
download | vim-git-7.3.1127.tar.gz |
updated for version 7.3.1127v7.3.1127
Problem: No error for using empty \%[].
Solution: Give error message.
Diffstat (limited to 'src/regexp.c')
-rw-r--r-- | src/regexp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regexp.c b/src/regexp.c index bf640fce2..432d7b577 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -366,7 +366,7 @@ static char_u e_z_not_allowed[] = N_("E66: \\z( not allowed here"); static char_u e_z1_not_allowed[] = N_("E67: \\z1 et al. not allowed here"); #endif static char_u e_missing_sb[] = N_("E69: Missing ] after %s%%["); - +static char_u e_empty_sb[] = N_("E70: Empty %s%%[]"); #define NOT_MULTI 0 #define MULTI_ONE 1 #define MULTI_MULT 2 @@ -2227,7 +2227,7 @@ regatom(flagp) return NULL; } if (ret == NULL) - EMSG2_RET_NULL(_("E70: Empty %s%%[]"), + EMSG2_RET_NULL(_(e_empty_sb), reg_magic == MAGIC_ALL); lastbranch = regnode(BRANCH); br = regnode(NOTHING); |