Mercurial > vim
diff src/vim.h @ 23450:a8e7acf71fa4 v8.2.2268
patch 8.2.2268: Vim9: list unpack seen as declaration
Commit: https://github.com/vim/vim/commit/3862ea3f620f02569c2d816ca9ceeeac3a0ad901
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 1 21:05:55 2021 +0100
patch 8.2.2268: Vim9: list unpack seen as declaration
Problem: Vim9: list unpack seen as declaration.
Solution: Check for "var". (closes https://github.com/vim/vim/issues/7594)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 01 Jan 2021 21:15:04 +0100 |
parents | 3105546b941f |
children | 1f85acfb23cd |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -2146,6 +2146,7 @@ typedef enum { #define ASSIGN_FINAL 1 // ":final" #define ASSIGN_CONST 2 // ":const" #define ASSIGN_NO_DECL 4 // "name = expr" without ":let"/":const"/":final" +#define ASSIGN_DECL 8 // may declare variable if it does not exist #include "ex_cmds.h" // Ex command defines #include "spell.h" // spell checking stuff