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

patch 8.2.0512: Vim9: no optional arguments in func type

Problem:    Vim9: no optional arguments in func type.
Solution:   Check for question mark after type.  Find function reference
            without function().
This commit is contained in:
Bram Moolenaar
2020-04-05 17:08:17 +02:00
parent d7ffc0ba8c
commit 5deeb3f1f9
13 changed files with 729 additions and 455 deletions

View File

@@ -377,7 +377,7 @@ store_var(char_u *name, typval_T *tv)
funccal_entry_T entry;
save_funccal(&entry);
set_var_const(name, NULL, tv, FALSE, 0);
set_var_const(name, NULL, tv, FALSE, LET_NO_COMMAND);
restore_funccal();
}
@@ -739,7 +739,7 @@ call_def_function(
--ectx.ec_stack.ga_len;
if (di == NULL)
store_var(iptr->isn_arg.string, STACK_TV_BOT(0));
store_var(name, STACK_TV_BOT(0));
else
{
clear_tv(&di->di_tv);
@@ -1828,7 +1828,7 @@ ex_disassemble(exarg_T *eap)
iptr->isn_arg.loadstore.ls_sid);
smsg("%4d LOADS s:%s from %s", current,
iptr->isn_arg.string, si->sn_name);
iptr->isn_arg.loadstore.ls_name, si->sn_name);
}
break;
case ISN_LOADG:
@@ -1865,7 +1865,7 @@ ex_disassemble(exarg_T *eap)
iptr->isn_arg.loadstore.ls_sid);
smsg("%4d STORES %s in %s", current,
iptr->isn_arg.string, si->sn_name);
iptr->isn_arg.loadstore.ls_name, si->sn_name);
}
break;
case ISN_STORESCRIPT: