diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-26 15:09:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-26 15:09:30 +0200 |
commit | 30fd8204cecb317d842b964d624d492088d6d15f (patch) | |
tree | 0df8a56d4a3c20098586020bc35b5e6e0b681894 /src/vim.h | |
parent | 273af497cac345897cf6369baa87a070876a5815 (diff) | |
download | vim-git-30fd8204cecb317d842b964d624d492088d6d15f.tar.gz |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |