comparison src/ex_eval.c @ 26887:612339679616 v8.2.3972

patch 8.2.3972: error messages are spread out Commit: https://github.com/vim/vim/commit/3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 16:21:00 2022 +0000 patch 8.2.3972: error messages are spread out Problem: Error messages are spread out. Solution: Move the last errors from globals.h to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 17:30:02 +0100
parents 7f150a4936f2
children d91aea2a612c
comparison
equal deleted inserted replaced
26886:8569717aef6a 26887:612339679616
1314 { 1314 {
1315 int idx; 1315 int idx;
1316 cstack_T *cstack = eap->cstack; 1316 cstack_T *cstack = eap->cstack;
1317 1317
1318 if (cstack->cs_looplevel <= 0 || cstack->cs_idx < 0) 1318 if (cstack->cs_looplevel <= 0 || cstack->cs_idx < 0)
1319 eap->errmsg = _(e_continue); 1319 eap->errmsg = _(e_continue_without_while_or_for);
1320 else 1320 else
1321 { 1321 {
1322 // Try to find the matching ":while". This might stop at a try 1322 // Try to find the matching ":while". This might stop at a try
1323 // conditional not in its finally clause (which is then to be executed 1323 // conditional not in its finally clause (which is then to be executed
1324 // next). Therefore, inactivate all conditionals except the ":while" 1324 // next). Therefore, inactivate all conditionals except the ":while"
1352 { 1352 {
1353 int idx; 1353 int idx;
1354 cstack_T *cstack = eap->cstack; 1354 cstack_T *cstack = eap->cstack;
1355 1355
1356 if (cstack->cs_looplevel <= 0 || cstack->cs_idx < 0) 1356 if (cstack->cs_looplevel <= 0 || cstack->cs_idx < 0)
1357 eap->errmsg = _(e_break); 1357 eap->errmsg = _(e_break_without_while_or_for);
1358 else 1358 else
1359 { 1359 {
1360 // Inactivate conditionals until the matching ":while" or a try 1360 // Inactivate conditionals until the matching ":while" or a try
1361 // conditional not in its finally clause (which is then to be 1361 // conditional not in its finally clause (which is then to be
1362 // executed next) is found. In the latter case, make the ":break" 1362 // executed next) is found. In the latter case, make the ":break"