summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-13 21:48:03 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-13 21:48:03 +0200
commitf6a8d420a8d2924737f713de046947dcb487550c (patch)
treeaf3f8d31770494ee325c10689132f58306141507 /src/vim.h
parentf2253963c28e4791092620df6a6bb238c33168df (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index baa3526d0f..4c9e095a10 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -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