diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-13 18:09:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-13 18:09:19 +0200 |
commit | c82a5b5da5eab15bc35115545b639fb590272ad7 (patch) | |
tree | 142b39935a504932df6e91b6d20757b3319edbda /src/proto/vim9script.pro | |
parent | 142499de3352e1edb2ab6cc2bf3b82441c8e5f4f (diff) |
patch 8.2.0972: Vim9 script variable declarations need a typev8.2.0972
Problem: Vim9 script variable declarations need a type.
Solution: Make "let var: type" declare a script-local variable.
Diffstat (limited to 'src/proto/vim9script.pro')
-rw-r--r-- | src/proto/vim9script.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/vim9script.pro b/src/proto/vim9script.pro index 1d8575dc22..45deed69a8 100644 --- a/src/proto/vim9script.pro +++ b/src/proto/vim9script.pro @@ -6,4 +6,5 @@ void free_imports(int sid); void ex_import(exarg_T *eap); int find_exported(int sid, char_u **argp, int *name_len, ufunc_T **ufunc, type_T **type); char_u *handle_import(char_u *arg_start, garray_T *gap, int import_sid, void *cctx); +char_u *vim9_declare_scriptvar(exarg_T *eap, char_u *arg); /* vim: set ft=c : */ |