commit | 1c0d44f8efae36c079cb8be395785827aa0b2737 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat May 02 19:04:58 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat May 02 19:04:58 2020 +0200 |
tree | aba827e5aa9d8b8c3f92d31c57fc19abd01c4a13 | |
parent | 0b6849e9e302286e906d97e4ba017dd66561a9ce [diff] [blame] |
patch 8.2.0682: Vim9: parsing function argument type can get stuck Problem: Vim9: parsing function argument type can get stuck. Solution: Bail out when not making progress.
diff --git a/src/vim9compile.c b/src/vim9compile.c index 5644c50..eb84e35 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -1663,7 +1663,11 @@ ++p; while (*p != ')' && *p != NUL) { + char_u *sp = p; + p = skip_type(p); + if (p == sp) + return p; // syntax error if (*p == ',') p = skipwhite(p + 1); }