summaryrefslogtreecommitdiffstats
path: root/src/vim9compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 6c43ad2f91..8b58d96889 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2638,6 +2638,11 @@ compile_dict(char_u **arg, cctx_T *cctx, int literal)
semsg(_(e_missing_dict_comma), *arg);
goto failret;
}
+ if (IS_WHITE_OR_NUL(*whitep))
+ {
+ semsg(_(e_no_white_before), ",");
+ return FAIL;
+ }
whitep = *arg + 1;
*arg = skipwhite(*arg + 1);
}