Mercurial > vim
comparison src/proto/vim9compile.pro @ 21500:574517d682cf v8.2.1300
patch 8.2.1300: Vim9: optional argument type not parsed properly
Commit: https://github.com/vim/vim/commit/4fc224ca1cf2a8991c5ea17682a742c6ad5ad0f3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 26 17:56:25 2020 +0200
patch 8.2.1300: Vim9: optional argument type not parsed properly
Problem: Vim9: optional 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:00:04 +0200 |
parents | 66386ca8a69f |
children | 4d3e983313dc |
comparison
equal
deleted
inserted
replaced
21499:3a1ed539ae2a | 21500:574517d682cf |
---|---|
4 type_T *typval2type(typval_T *tv, garray_T *type_gap); | 4 type_T *typval2type(typval_T *tv, garray_T *type_gap); |
5 type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap); | 5 type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap); |
6 int check_typval_type(type_T *expected, typval_T *actual_tv); | 6 int check_typval_type(type_T *expected, typval_T *actual_tv); |
7 int check_type(type_T *expected, type_T *actual, int give_msg); | 7 int check_type(type_T *expected, type_T *actual, int give_msg); |
8 int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2); | 8 int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2); |
9 char_u *skip_type(char_u *start); | 9 char_u *skip_type(char_u *start, int optional); |
10 type_T *parse_type(char_u **arg, garray_T *type_gap); | 10 type_T *parse_type(char_u **arg, garray_T *type_gap); |
11 char *vartype_name(vartype_T type); | 11 char *vartype_name(vartype_T type); |
12 char *type_name(type_T *type, char **tofree); | 12 char *type_name(type_T *type, char **tofree); |
13 int get_script_item_idx(int sid, char_u *name, int check_writable); | 13 int get_script_item_idx(int sid, char_u *name, int check_writable); |
14 imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx); | 14 imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx); |