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.
diff --git a/src/dict.c b/src/dict.c
index b40aaef..b36b2bf 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -945,7 +945,7 @@
if (**arg != ':')
{
if (*skipwhite(*arg) == ':')
- semsg(_(e_no_white_space_allowed_before_str), ":");
+ semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg);
else
semsg(_(e_missing_dict_colon), *arg);
clear_tv(&tvkey);
@@ -1025,7 +1025,7 @@
if (!had_comma)
{
if (**arg == ',')
- semsg(_(e_no_white_space_allowed_before_str), ",");
+ semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg);
else
semsg(_(e_missing_dict_comma), *arg);
goto failret;