Mercurial > vim
diff src/vim.h @ 23297:40f1d3f0c53e v8.2.2194
patch 8.2.2194: Vim9: cannot use :const or :final at the script level
Commit: https://github.com/vim/vim/commit/89b474dd4f0de878b4c48eeb9e223f0c22ee1442
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 22 21:19:39 2020 +0100
patch 8.2.2194: Vim9: cannot use :const or :final at the script level
Problem: Vim9: cannot use :const or :final at the script level.
Solution: Support using :const and :final. (closes https://github.com/vim/vim/issues/7526)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Dec 2020 21:30:04 +0100 |
parents | a789a688e37d |
children | 3105546b941f |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -2144,7 +2144,7 @@ typedef enum { // Flags for assignment functions. #define ASSIGN_FINAL 1 // ":final" #define ASSIGN_CONST 2 // ":const" -#define ASSIGN_NO_DECL 4 // "name = expr" without ":let" or ":const" +#define ASSIGN_NO_DECL 4 // "name = expr" without ":let"/":const"/":final" #include "ex_cmds.h" // Ex command defines #include "spell.h" // spell checking stuff