Mercurial > vim
comparison src/vim9.h @ 19912:d4fa9db88d16 v8.2.0512
patch 8.2.0512: Vim9: no optional arguments in func type
Commit: https://github.com/vim/vim/commit/5deeb3f1f9db4eabd36e99cbf857fe376eb37e10
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 5 17:08:17 2020 +0200
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().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Apr 2020 17:15:25 +0200 |
parents | 8288884fdfe1 |
children | 6765a88e72a5 |
comparison
equal
deleted
inserted
replaced
19911:70edfdef3b83 | 19912:d4fa9db88d16 |
---|---|
27 ISN_LOADREG, // push register isn_arg.number | 27 ISN_LOADREG, // push register isn_arg.number |
28 | 28 |
29 ISN_STORE, // pop into local variable isn_arg.number | 29 ISN_STORE, // pop into local variable isn_arg.number |
30 ISN_STOREV, // pop into v: variable isn_arg.number | 30 ISN_STOREV, // pop into v: variable isn_arg.number |
31 ISN_STOREG, // pop into global variable isn_arg.string | 31 ISN_STOREG, // pop into global variable isn_arg.string |
32 ISN_STORES, // pop into scirpt variable isn_arg.loadstore | 32 ISN_STORES, // pop into script variable isn_arg.loadstore |
33 ISN_STORESCRIPT, // pop into scirpt variable isn_arg.script | 33 ISN_STORESCRIPT, // pop into script variable isn_arg.script |
34 ISN_STOREOPT, // pop into option isn_arg.string | 34 ISN_STOREOPT, // pop into option isn_arg.string |
35 ISN_STOREENV, // pop into environment variable isn_arg.string | 35 ISN_STOREENV, // pop into environment variable isn_arg.string |
36 ISN_STOREREG, // pop into register isn_arg.number | 36 ISN_STOREREG, // pop into register isn_arg.number |
37 // ISN_STOREOTHER, // pop into other script variable isn_arg.other. | 37 // ISN_STOREOTHER, // pop into other script variable isn_arg.other. |
38 | 38 |
189 int so_flags; | 189 int so_flags; |
190 } storeopt_T; | 190 } storeopt_T; |
191 | 191 |
192 // arguments to ISN_LOADS and ISN_STORES | 192 // arguments to ISN_LOADS and ISN_STORES |
193 typedef struct { | 193 typedef struct { |
194 char_u *ls_name; // variable name | 194 char_u *ls_name; // variable name (with s: for ISN_STORES) |
195 int ls_sid; // script ID | 195 int ls_sid; // script ID |
196 } loadstore_T; | 196 } loadstore_T; |
197 | 197 |
198 // arguments to ISN_LOADSCRIPT and ISN_STORESCRIPT | 198 // arguments to ISN_LOADSCRIPT and ISN_STORESCRIPT |
199 typedef struct { | 199 typedef struct { |