summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-26 15:09:30 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-26 15:09:30 +0200
commit30fd8204cecb317d842b964d624d492088d6d15f (patch)
tree0df8a56d4a3c20098586020bc35b5e6e0b681894 /src/cmdexpand.c
parent273af497cac345897cf6369baa87a070876a5815 (diff)
patch 8.2.1744: Vim9: using ":const!" is weirdv8.2.1744
Problem: Vim9: using ":const!" is weird. Solution: Use "var" - "final" - "const" like Dart. "let" still works for now.
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index e7cf819981..f3e19bc020 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -1513,8 +1513,10 @@ set_one_cmd_context(
break;
#endif
#ifdef FEAT_EVAL
+ case CMD_final:
case CMD_const:
case CMD_let:
+ case CMD_var:
case CMD_if:
case CMD_elseif:
case CMD_while: