summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-26 15:09:30 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-26 15:09:30 +0200
commit30fd8204cecb317d842b964d624d492088d6d15f (patch)
tree0df8a56d4a3c20098586020bc35b5e6e0b681894 /src/vim.h
parent273af497cac345897cf6369baa87a070876a5815 (diff)
patch 8.2.1744: Vim9: using ":const!" is weirdv8.2.1744
Problem: Vim9: using ":const!" is weird. Solution: Use "var" - "final" - "const" like Dart. "let" still works for now.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vim.h b/src/vim.h
index 208128e697..9da878e275 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2135,9 +2135,9 @@ typedef enum {
} estack_arg_T;
// Flags for assignment functions.
-#define LET_IS_CONST 1 // ":const"
-#define LET_FORCEIT 2 // ":const!" (LET_IS_CONST is also set)
-#define LET_NO_COMMAND 4 // "var = expr" without ":let" or ":const"
+#define ASSIGN_FINAL 1 // ":final"
+#define ASSIGN_CONST 2 // ":const"
+#define ASSIGN_NO_DECL 4 // "name = expr" without ":let" or ":const"
#include "ex_cmds.h" // Ex command defines
#include "spell.h" // spell checking stuff