summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-10 22:35:43 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-10 22:35:43 +0200
commitf93bbd026205f36915312193784f987ad49fb114 (patch)
tree3d33a10b9e526aa7ed613bb4113df3406025632a /src/vim.h
parente8e307818495d1a5d821df9bd4bde83add0520e5 (diff)
downloadvim-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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vim.h b/src/vim.h
index 7f4c99ad3..31e181a13 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -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