Mercurial > vim
comparison src/structs.h @ 26323:3841da4eac23 v8.2.3692
patch 8.2.3692: Vim9: cannot use :func inside a :def function
Commit: https://github.com/vim/vim/commit/38453528c3372293d70c8e85471a6188749ff331
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 28 22:00:12 2021 +0000
patch 8.2.3692: Vim9: cannot use :func inside a :def function
Problem: Vim9: cannot use :func inside a :def function.
Solution: Make it work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Nov 2021 23:15:03 +0100 |
parents | 3aa48d4e3dc8 |
children | 8aba638e91eb |
comparison
equal
deleted
inserted
replaced
26322:931db05edfa7 | 26323:3841da4eac23 |
---|---|
1697 #define FC_EXPORT 0x100 // "export def Func()" | 1697 #define FC_EXPORT 0x100 // "export def Func()" |
1698 #define FC_NOARGS 0x200 // no a: variables in lambda | 1698 #define FC_NOARGS 0x200 // no a: variables in lambda |
1699 #define FC_VIM9 0x400 // defined in vim9 script file | 1699 #define FC_VIM9 0x400 // defined in vim9 script file |
1700 #define FC_CFUNC 0x800 // defined as Lua C func | 1700 #define FC_CFUNC 0x800 // defined as Lua C func |
1701 #define FC_COPY 0x1000 // copy of another function by copy_func() | 1701 #define FC_COPY 0x1000 // copy of another function by copy_func() |
1702 #define FC_LAMBDA 0x2000 // one line "return {expr}" | |
1702 | 1703 |
1703 #define MAX_FUNC_ARGS 20 // maximum number of function arguments | 1704 #define MAX_FUNC_ARGS 20 // maximum number of function arguments |
1704 #define VAR_SHORT_LEN 20 // short variable name length | 1705 #define VAR_SHORT_LEN 20 // short variable name length |
1705 #define FIXVAR_CNT 12 // number of fixed variables | 1706 #define FIXVAR_CNT 12 // number of fixed variables |
1706 | 1707 |