mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.1266: error for space before ": type" is inconsistent
Problem: Error for space before ": type" is inconsistent. Solution: Give E1059 in more places. (closes #11868)
This commit is contained in:
@@ -1001,8 +1001,13 @@ compile_for(char_u *arg_start, cctx_T *cctx)
|
||||
name = vim_strnsave(arg, varlen);
|
||||
if (name == NULL)
|
||||
goto failed;
|
||||
if (*p == ':')
|
||||
if (*skipwhite(p) == ':')
|
||||
{
|
||||
if (VIM_ISWHITE(*p))
|
||||
{
|
||||
semsg(_(e_no_white_space_allowed_before_colon_str), p);
|
||||
goto failed;
|
||||
}
|
||||
p = skipwhite(p + 1);
|
||||
lhs_type = parse_type(&p, cctx->ctx_type_list, TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user