diff src/errors.h @ 23442:f00d6ff51046 v8.2.2264

patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef Commit: https://github.com/vim/vim/commit/5178b1b02fc96f42d62199a4be9184c2aea8a49a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 1 18:43:51 2021 +0100 patch 8.2.2264: Vim9: no error for mismatched :endfunc or :enddef Problem: Vim9: no error for mismatched :endfunc or :enddef. Solution: Check for the mismatch. (issue https://github.com/vim/vim/issues/7582)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Jan 2021 18:45:03 +0100
parents 9a5f12b36273
children b1dbbc81a011
line wrap: on
line diff
--- a/src/errors.h
+++ b/src/errors.h
@@ -335,3 +335,7 @@ EXTERN char e_script_variable_invalid_af
 	INIT(= N_("E1149: Script variable is invalid after reload in function %s"));
 EXTERN char e_script_variable_type_changed[]
 	INIT(= N_("E1150: Script variable type changed"));
+EXTERN char e_mismatched_endfunction[]
+	INIT(= N_("E1151: Mismatched endfunction"));
+EXTERN char e_mismatched_enddef[]
+	INIT(= N_("E1152: Mismatched enddef"));