diff src/vim9type.c @ 23888:d95403445b6b v8.2.2486

patch 8.2.2486: Vim9: some errors for white space do not show context Commit: https://github.com/vim/vim/commit/ba98fb54aefada4c36390add4c7dd90b93e7e5bb Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 18:06:29 2021 +0100 patch 8.2.2486: Vim9: some errors for white space do not show context Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Feb 2021 18:15:05 +0100
parents 85cf06ddb2a8
children 4b417b776b95
line wrap: on
line diff
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -638,7 +638,7 @@ parse_type_member(
 	if (give_error)
 	{
 	    if (*skipwhite(*arg) == '<')
-		semsg(_(e_no_white_space_allowed_before_str), "<");
+		semsg(_(e_no_white_space_allowed_before_str_str), "<", *arg);
 	    else
 		emsg(_(e_missing_type));
 	}
@@ -779,7 +779,8 @@ parse_type(char_u **arg, garray_T *type_
 			if (*p != ',' && *skipwhite(p) == ',')
 			{
 			    if (give_error)
-				semsg(_(e_no_white_space_allowed_before_str), ",");
+				semsg(_(e_no_white_space_allowed_before_str_str),
+								       ",", p);
 			    return NULL;
 			}
 			if (*p == ',')