comparison 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
comparison
equal deleted inserted replaced
22271:0440d470ae70 22272:eb1f5f618c75
2134 ESTACK_STACK 2134 ESTACK_STACK
2135 } estack_arg_T; 2135 } estack_arg_T;
2136 2136
2137 // Flags for assignment functions. 2137 // Flags for assignment functions.
2138 #define LET_IS_CONST 1 // ":const" 2138 #define LET_IS_CONST 1 // ":const"
2139 #define LET_NO_COMMAND 2 // "var = expr" without ":let" or ":const" 2139 #define LET_FORCEIT 2 // ":const!" (LET_IS_CONST is also set)
2140 #define LET_NO_COMMAND 4 // "var = expr" without ":let" or ":const"
2140 2141
2141 #include "ex_cmds.h" // Ex command defines 2142 #include "ex_cmds.h" // Ex command defines
2142 #include "spell.h" // spell checking stuff 2143 #include "spell.h" // spell checking stuff
2143 2144
2144 #include "proto.h" // function prototypes 2145 #include "proto.h" // function prototypes