summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-14 21:19:04 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-14 21:19:04 +0000
commitbc510064027da8024d59460c9c816aea4ffac096 (patch)
tree5054f5b794010b839bfec74808b369a726709f57 /src/vim9compile.c
parent7a3b802bab5add34baae37ec2c1ae7ad2f1693bd (diff)
downloadvim-git-bc510064027da8024d59460c9c816aea4ffac096.tar.gz
patch 8.2.4384: Vim9: error message not tested, some code not testedv8.2.4384
Problem: Vim9: error message not tested, some code not tested. Solution: Add a couple of test cases. Give an error for a command modifier without a command.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 81ee41ebe..a0efafc1e 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2761,13 +2761,7 @@ compile_def_function(
cctx.ctx_has_cmdmod = FALSE;
if (parse_command_modifiers(&ea, &errormsg, &local_cmdmod, FALSE)
== FAIL)
- {
- if (errormsg != NULL)
- goto erret;
- // empty line or comment
- line = (char_u *)"";
- continue;
- }
+ goto erret;
generate_cmdmods(&cctx, &local_cmdmod);
undo_cmdmod(&local_cmdmod);