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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user