Mercurial > vim
diff src/vim.h @ 33466:3de472480e91 v9.0.1986
patch 9.0.1986: Vim9: accepting type-annotations
Commit: https://github.com/vim/vim/commit/b5a0719cb7abf51b0540df527cb9738a3ccf0d37
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Oct 5 20:14:43 2023 +0200
patch 9.0.1986: Vim9: accepting type-annotations
Problem: Vim9: accepting type-annotations
Solution: Reject type annotations outside of declarations.
closes: #13267
closes: #13283
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 05 Oct 2023 20:30:08 +0200 |
parents | 21287c90cc2c |
children | 46d449fd4fe4 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -2776,6 +2776,7 @@ typedef int (*opt_expand_cb_T)(optexpand #define GLV_COMPILING TFN_COMPILING // variable may be defined later #define GLV_ASSIGN_WITH_OP TFN_ASSIGN_WITH_OP // assignment with operator #define GLV_PREFER_FUNC 0x10000 // prefer function above variable +#define GLV_FOR_LOOP 0x20000 // assigning to a loop variable #define DO_NOT_FREE_CNT 99999 // refcount for dict or list that should not // be freed.