0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #7526)
This commit is contained in:
Bram Moolenaar
2020-12-22 21:19:39 +01:00
parent 3bdc90b7df
commit 89b474dd4f
5 changed files with 70 additions and 15 deletions

View File

@@ -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