summaryrefslogtreecommitdiffstats
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-26 17:56:25 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-26 17:56:25 +0200
commit4fc224ca1cf2a8991c5ea17682a742c6ad5ad0f3 (patch)
tree4c752cc9133d073c9f0a085f94bdd38948598d7a /src/proto
parent2547aa930b59f5e2bcb70e81d5a57ed461e59b4f (diff)
patch 8.2.1300: Vim9: optional argument type not parsed properlyv8.2.1300
Problem: Vim9: optional argument type not parsed properly. Solution: Skip over the "?". (issue #6507)
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/vim9compile.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/vim9compile.pro b/src/proto/vim9compile.pro
index 6bf3eb315d..4108c04af4 100644
--- a/src/proto/vim9compile.pro
+++ b/src/proto/vim9compile.pro
@@ -6,7 +6,7 @@ type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap);
int check_typval_type(type_T *expected, typval_T *actual_tv);
int check_type(type_T *expected, type_T *actual, int give_msg);
int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2);
-char_u *skip_type(char_u *start);
+char_u *skip_type(char_u *start, int optional);
type_T *parse_type(char_u **arg, garray_T *type_gap);
char *vartype_name(vartype_T type);
char *type_name(type_T *type, char **tofree);