summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-03 20:55:26 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-03 20:55:26 +0100
commit2ef951dd31505874ae9ac35a18513ef34ae0ea3e (patch)
treea9be93c17454efbd7edec7c520d6ebaea55f7135 /src/vim.h
parente5a2dc87fd9d63dfd0d9c379e363ee8b8c05b14c (diff)
downloadvim-git-2ef951dd31505874ae9ac35a18513ef34ae0ea3e.tar.gz
patch 8.2.2290: Vim9: unlet of global variable cannot be compiledv8.2.2290
Problem: Vim9: unlet of global variable cannot be compiled. Solution: Skip over variables that might be defined later. Give an error if a subscript is found. (closes #7585)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index a0ee0d6b9..7ba728a37 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2544,12 +2544,14 @@ typedef enum {
#define TFN_NO_DEREF 0x08 // do not dereference a Funcref
#define TFN_READ_ONLY 0x10 // will not change the var
#define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL
+#define TFN_COMPILING 0x40 // only used for GLV_COMPILING
// Values for get_lval() flags argument:
#define GLV_QUIET TFN_QUIET // no error messages
#define GLV_NO_AUTOLOAD TFN_NO_AUTOLOAD // do not use script autoloading
#define GLV_READ_ONLY TFN_READ_ONLY // will not change the var
#define GLV_NO_DECL TFN_NO_DECL // assignment without :var or :let
+#define GLV_COMPILING TFN_COMPILING // variable may be defined later
#define DO_NOT_FREE_CNT 99999 // refcount for dict or list that should not
// be freed.