forked from aniani/vim
patch 8.2.0626: Vim9: wrong syntax of function in Vim9 script
Problem: Vim9: wrong syntax of function in Vim9 script. Solution: Give error for missing space. Implement :echomsg and :echoerr. (closes #5670)
This commit is contained in:
@@ -128,7 +128,13 @@ one_function_arg(char_u *arg, garray_T *newargs, garray_T *argtypes, int skip)
|
||||
}
|
||||
if (*p == ':')
|
||||
{
|
||||
type = skipwhite(p + 1);
|
||||
++p;
|
||||
if (!VIM_ISWHITE(*p))
|
||||
{
|
||||
semsg(_(e_white_after), ":");
|
||||
return arg;
|
||||
}
|
||||
type = skipwhite(p);
|
||||
p = skip_type(type);
|
||||
type = vim_strnsave(type, p - type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user