Mercurial > vim
diff src/userfunc.c @ 21552:cbc570e66d11 v8.2.1326
patch 8.2.1326: Vim9: skipping over white space after list
Commit: https://github.com/vim/vim/commit/9d489566815d7913afc5dfc2a772bacede3970fb
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 30 20:08:50 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 30 Jul 2020 20:15:05 +0200 |
parents | e0aa9b81f6a9 |
children | 1c4d4aa22b37 |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -642,6 +642,10 @@ get_func_tv( 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; }