comparison src/vim.h @ 23495:1f85acfb23cd v8.2.2290

patch 8.2.2290: Vim9: unlet of global variable cannot be compiled Commit: https://github.com/vim/vim/commit/2ef951dd31505874ae9ac35a18513ef34ae0ea3e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 3 20:55:26 2021 +0100 patch 8.2.2290: Vim9: unlet of global variable cannot be compiled 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Jan 2021 21:00:05 +0100
parents a8e7acf71fa4
children cd06cc37f53f
comparison
equal deleted inserted replaced
23494:1931eb850508 23495:1f85acfb23cd
2542 #define TFN_QUIET 0x02 // no error messages 2542 #define TFN_QUIET 0x02 // no error messages
2543 #define TFN_NO_AUTOLOAD 0x04 // do not use script autoloading 2543 #define TFN_NO_AUTOLOAD 0x04 // do not use script autoloading
2544 #define TFN_NO_DEREF 0x08 // do not dereference a Funcref 2544 #define TFN_NO_DEREF 0x08 // do not dereference a Funcref
2545 #define TFN_READ_ONLY 0x10 // will not change the var 2545 #define TFN_READ_ONLY 0x10 // will not change the var
2546 #define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL 2546 #define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL
2547 #define TFN_COMPILING 0x40 // only used for GLV_COMPILING
2547 2548
2548 // Values for get_lval() flags argument: 2549 // Values for get_lval() flags argument:
2549 #define GLV_QUIET TFN_QUIET // no error messages 2550 #define GLV_QUIET TFN_QUIET // no error messages
2550 #define GLV_NO_AUTOLOAD TFN_NO_AUTOLOAD // do not use script autoloading 2551 #define GLV_NO_AUTOLOAD TFN_NO_AUTOLOAD // do not use script autoloading
2551 #define GLV_READ_ONLY TFN_READ_ONLY // will not change the var 2552 #define GLV_READ_ONLY TFN_READ_ONLY // will not change the var
2552 #define GLV_NO_DECL TFN_NO_DECL // assignment without :var or :let 2553 #define GLV_NO_DECL TFN_NO_DECL // assignment without :var or :let
2554 #define GLV_COMPILING TFN_COMPILING // variable may be defined later
2553 2555
2554 #define DO_NOT_FREE_CNT 99999 // refcount for dict or list that should not 2556 #define DO_NOT_FREE_CNT 99999 // refcount for dict or list that should not
2555 // be freed. 2557 // be freed.
2556 2558
2557 // errors for when calling a function 2559 // errors for when calling a function