diff src/vim9compile.c @ 23346:2060f53b7c17 v8.2.2216

patch 8.2.2216: Vim9: range with missing colon can be hard to spot Commit: https://github.com/vim/vim/commit/6e2c2c50bada4e3f5c7234902c0bdd64f66619ac Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 25 19:25:45 2020 +0100 patch 8.2.2216: Vim9: range with missing colon can be hard to spot Problem: Vim9: range with missing colon can be hard to spot. Solution: Include the start of the range in the error. (closes https://github.com/vim/vim/issues/7543)
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Dec 2020 19:30:03 +0100
parents 1f37fd20f851
children 37118deff718
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -7727,7 +7727,7 @@ compile_def_function(ufunc_T *ufunc, int
 	    {
 		if (!starts_with_colon)
 		{
-		    emsg(_(e_colon_required_before_a_range));
+		    semsg(_(e_colon_required_before_range_str), cmd);
 		    goto erret;
 		}
 		if (ends_excmd2(line, ea.cmd))