comparison src/vim9compile.c @ 21502:179697662a5a v8.2.1301

patch 8.2.1301: Vim9: varargs argument type not parsed properly Commit: https://github.com/vim/vim/commit/ace6132aa8c5fce9d4965e1f2e3a42071815b9de Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 26 18:16:58 2020 +0200 patch 8.2.1301: Vim9: varargs argument type not parsed properly Problem: Vim9: varargs argument type not parsed properly. Solution: Skip over the "...". (issue https://github.com/vim/vim/issues/6507)
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Jul 2020 18:30:03 +0200
parents 574517d682cf
children e87a97868bbc
comparison
equal deleted inserted replaced
21501:725efd0a47c7 21502:179697662a5a
1954 ++p; 1954 ++p;
1955 while (*p != ')' && *p != NUL) 1955 while (*p != ')' && *p != NUL)
1956 { 1956 {
1957 char_u *sp = p; 1957 char_u *sp = p;
1958 1958
1959 if (STRNCMP(p, "...", 3) == 0)
1960 p += 3;
1959 p = skip_type(p, TRUE); 1961 p = skip_type(p, TRUE);
1960 if (p == sp) 1962 if (p == sp)
1961 return p; // syntax error 1963 return p; // syntax error
1962 if (*p == ',') 1964 if (*p == ',')
1963 p = skipwhite(p + 1); 1965 p = skipwhite(p + 1);