summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-10 21:33:48 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-10 21:33:48 +0200
commit9becdf2b98e56d5eb193f3413d706ea433269216 (patch)
tree5733bdcc5289fed0156acb11d6e9e32bef266a06 /src/ex_cmds.h
parentd747548c664815bb6e8520afa90b6108e1997591 (diff)
downloadvim-git-9becdf2b98e56d5eb193f3413d706ea433269216.tar.gz
patch 8.2.1826: Vim9: cannot use a {} block at script levelv8.2.1826
Problem: Vim9: cannot use a {} block at script level. Solution: Recognize a {} block.
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 0c83f521f..0b52c11ee 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1812,6 +1812,12 @@ EXCMD(CMD_rshift, ">", ex_operators,
EXCMD(CMD_at, "@", ex_at,
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
ADDR_LINES),
+EXCMD(CMD_block, "{{{{{{{{", ex_block, // not found normally
+ 0,
+ ADDR_NONE),
+EXCMD(CMD_endblock, "}", ex_endblock,
+ EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK,
+ ADDR_NONE),
EXCMD(CMD_tilde, "~", ex_substitute,
EX_RANGE|EX_WHOLEFOLD|EX_EXTRA|EX_CMDWIN|EX_LOCK_OK|EX_MODIFY,
ADDR_LINES),