mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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.
This commit is contained in:
@@ -3060,7 +3060,14 @@ compile_list(char_u **arg, cctx_T *cctx)
|
||||
break;
|
||||
++count;
|
||||
if (*p == ',')
|
||||
{
|
||||
++p;
|
||||
if (*p != ']' && !IS_WHITE_OR_NUL(*p))
|
||||
{
|
||||
semsg(_(e_white_after), ",");
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
whitep = p;
|
||||
p = skipwhite(p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user