diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-10 22:35:43 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-10 22:35:43 +0200 |
commit | f93bbd026205f36915312193784f987ad49fb114 (patch) | |
tree | 3d33a10b9e526aa7ed613bb4113df3406025632a /src/vim.h | |
parent | e8e307818495d1a5d821df9bd4bde83add0520e5 (diff) | |
download | vim-git-f93bbd026205f36915312193784f987ad49fb114.tar.gz |
patch 8.2.2753: Vim9: cannot ignore an item in assignment unpackv8.2.2753
Problem: Vim9: cannot ignore an item in assignment unpack.
Solution: Allow using an underscore.
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2152,10 +2152,11 @@ typedef enum { } estack_arg_T; // Flags for assignment functions. -#define ASSIGN_FINAL 1 // ":final" -#define ASSIGN_CONST 2 // ":const" -#define ASSIGN_NO_DECL 4 // "name = expr" without ":let"/":const"/":final" -#define ASSIGN_DECL 8 // may declare variable if it does not exist +#define ASSIGN_FINAL 0x01 // ":final" +#define ASSIGN_CONST 0x02 // ":const" +#define ASSIGN_NO_DECL 0x04 // "name = expr" without ":let"/":const"/":final" +#define ASSIGN_DECL 0x08 // may declare variable if it does not exist +#define ASSIGN_UNPACK 0x10 // using [a, b] = list #include "ex_cmds.h" // Ex command defines #include "spell.h" // spell checking stuff |