diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-13 21:48:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-13 21:48:03 +0200 |
commit | f6a8d420a8d2924737f713de046947dcb487550c (patch) | |
tree | af3f8d31770494ee325c10689132f58306141507 /src/vim.h | |
parent | f2253963c28e4791092620df6a6bb238c33168df (diff) |
patch 8.2.2760: Vim9: no error for changing a for loop variablev8.2.2760
Problem: Vim9: no error for changing a for loop variable.
Solution: Make the loop variable read-only. (issue #8102)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2158,6 +2158,7 @@ typedef enum { #define ASSIGN_DECL 0x08 // may declare variable if it does not exist #define ASSIGN_UNPACK 0x10 // using [a, b] = list #define ASSIGN_NO_MEMBER_TYPE 0x20 // use "any" for list and dict member type +#define ASSIGN_FOR_LOOP 0x40 // assigning to loop variable #include "ex_cmds.h" // Ex command defines #include "spell.h" // spell checking stuff |