mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2576: Vim9: defining a :func function checks for white space
Problem: Vim9: defining a :func function checks for white space after a comma in the arguments. Solution: Only check for white space in a :def function. (closes #7930)
This commit is contained in:
@@ -310,7 +310,8 @@ get_function_args(
|
||||
++p;
|
||||
// Don't give this error when skipping, it makes the "->" not
|
||||
// found in "{k,v -> x}" and give a confusing error.
|
||||
if (!skip && in_vim9script()
|
||||
// Allow missing space after comma in legacy functions.
|
||||
if (!skip && argtypes != NULL
|
||||
&& !IS_WHITE_OR_NUL(*p) && *p != endchar)
|
||||
{
|
||||
semsg(_(e_white_space_required_after_str_str), ",", p - 1);
|
||||
|
Reference in New Issue
Block a user