diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-26 15:09:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-26 15:09:30 +0200 |
commit | 30fd8204cecb317d842b964d624d492088d6d15f (patch) | |
tree | 0df8a56d4a3c20098586020bc35b5e6e0b681894 /src/cmdexpand.c | |
parent | 273af497cac345897cf6369baa87a070876a5815 (diff) | |
download | vim-git-30fd8204cecb317d842b964d624d492088d6d15f.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c index e7cf81998..f3e19bc02 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: |