Mercurial > vim
diff src/vim.h @ 22272:eb1f5f618c75 v8.2.1685
patch 8.2.1685: Vim9: cannot declare a constant value
Commit: https://github.com/vim/vim/commit/0b4c66c67a083f25816b9cdb8e76a41e02d9f560
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 14 21:39:44 2020 +0200
patch 8.2.1685: Vim9: cannot declare a constant value
Problem: Vim9: cannot declare a constant value.
Solution: Introduce ":const!".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Sep 2020 21:45:04 +0200 |
parents | a607f02fd17a |
children | a9fb7efa31d6 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -2136,7 +2136,8 @@ typedef enum { // Flags for assignment functions. #define LET_IS_CONST 1 // ":const" -#define LET_NO_COMMAND 2 // "var = expr" without ":let" or ":const" +#define LET_FORCEIT 2 // ":const!" (LET_IS_CONST is also set) +#define LET_NO_COMMAND 4 // "var = expr" without ":let" or ":const" #include "ex_cmds.h" // Ex command defines #include "spell.h" // spell checking stuff