patch 8.2.1326: Vim9: skipping over white space after list
Problem: Vim9: skipping over white space after list.
Solution: Do not skip white space, a following [] would be misinterpreted.
(closes #6552) Fix a few side effects.
diff --git a/src/userfunc.c b/src/userfunc.c
index 343c9cd..de0cdb7 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -642,6 +642,10 @@
break;
}
++argcount;
+ // The comma should come right after the argument, but this wasn't
+ // checked previously, thus only enforce it in Vim9 script.
+ if (!in_vim9script())
+ argp = skipwhite(argp);
if (*argp != ',')
break;
}