summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-26 18:16:58 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-26 18:16:58 +0200
commitace6132aa8c5fce9d4965e1f2e3a42071815b9de (patch)
treecc92dd05609e704d2dbacf886e5c656a7465408e /src/vim9compile.c
parent4fc224ca1cf2a8991c5ea17682a742c6ad5ad0f3 (diff)
downloadvim-git-ace6132aa8c5fce9d4965e1f2e3a42071815b9de.tar.gz
patch 8.2.1301: Vim9: varargs argument type not parsed properlyv8.2.1301
Problem: Vim9: varargs argument type not parsed properly. Solution: Skip over the "...". (issue #6507)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 1354a38b2..31e761284 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1956,6 +1956,8 @@ skip_type(char_u *start, int optional)
{
char_u *sp = p;
+ if (STRNCMP(p, "...", 3) == 0)
+ p += 3;
p = skip_type(p, TRUE);
if (p == sp)
return p; // syntax error