commit | 6b7a0a8c201bbace7e69fe0709f72b95092193df | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jul 08 18:38:08 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jul 08 18:38:08 2020 +0200 |
tree | 86a4bf66437397f57fe4e59ffc9fc63e7e122b90 | |
parent | b335b29e1c3428fd475026412297d5aa63b623e6 [diff] [blame] |
patch 8.2.1159: Vim9: no error for missing space after a comma Problem: Vim9: no error for missing space after a comma. Solution: Check for white space.
diff --git a/src/vim9compile.c b/src/vim9compile.c index 07aacb3..0aae8f2 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -3060,7 +3060,14 @@ break; ++count; if (*p == ',') + { ++p; + if (*p != ']' && !IS_WHITE_OR_NUL(*p)) + { + semsg(_(e_white_after), ","); + return FAIL; + } + } whitep = p; p = skipwhite(p); }