0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1300: Vim9: optional argument type not parsed properly

Problem:    Vim9: optional argument type not parsed properly.
Solution:   Skip over the "?". (issue #6507)
This commit is contained in:
Bram Moolenaar
2020-07-26 17:56:25 +02:00
parent 2547aa930b
commit 4fc224ca1c
6 changed files with 37 additions and 11 deletions

View File

@@ -1013,7 +1013,7 @@ skip_var_one(char_u *arg, int include_type)
if (end == arg + 2 && end[-1] == ':')
--end;
if (*end == ':')
end = skip_type(skipwhite(end + 1));
end = skip_type(skipwhite(end + 1), FALSE);
}
return end;
}