comparison src/regexp_nfa.c @ 25306:078edc1821bf v8.2.3190

patch 8.2.3190: error messages are spread out Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 20 21:07:36 2021 +0200 patch 8.2.3190: error messages are spread out Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Jul 2021 21:15:05 +0200
parents 0797c8ce343d
children 1e6da8364a02
comparison
equal deleted inserted replaced
25305:4032f1628500 25306:078edc1821bf
1525 1525
1526 // Previous substitute pattern. 1526 // Previous substitute pattern.
1527 // Generated as "\%(pattern\)". 1527 // Generated as "\%(pattern\)".
1528 if (reg_prev_sub == NULL) 1528 if (reg_prev_sub == NULL)
1529 { 1529 {
1530 emsg(_(e_nopresub)); 1530 emsg(_(e_no_previous_substitute_regular_expression));
1531 return FAIL; 1531 return FAIL;
1532 } 1532 }
1533 for (lp = reg_prev_sub; *lp != NUL; MB_CPTR_ADV(lp)) 1533 for (lp = reg_prev_sub; *lp != NUL; MB_CPTR_ADV(lp))
1534 { 1534 {
1535 EMIT(PTR2CHAR(lp)); 1535 EMIT(PTR2CHAR(lp));
7354 } 7354 }
7355 7355
7356 // Be paranoid... 7356 // Be paranoid...
7357 if (prog == NULL || line == NULL) 7357 if (prog == NULL || line == NULL)
7358 { 7358 {
7359 iemsg(_(e_null)); 7359 iemsg(_(e_null_argument));
7360 goto theend; 7360 goto theend;
7361 } 7361 }
7362 7362
7363 // If pattern contains "\c" or "\C": overrule value of rex.reg_ic 7363 // If pattern contains "\c" or "\C": overrule value of rex.reg_ic
7364 if (prog->regflags & RF_ICASE) 7364 if (prog->regflags & RF_ICASE)