diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-04-27 11:36:12 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-27 11:48:26 +0200 |
commit | ac7731895c996acef4d02b784f9952749226e203 (patch) | |
tree | 60a6d4a28b3e64f96ccf7587fdb490b2c40cb88a /src/vim9class.c | |
parent | 340643e9779a96710a27d0eeef24f2c08b8967c4 (diff) |
patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignoredv9.1.0376
Problem: Vim9: Trailing commands after class/enum keywords ignored
Solution: Remove EX_TRLBAR keyword from command definition
(Yegappan Lakshmanan)
closes: #14649
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/vim9class.c')
-rw-r--r-- | src/vim9class.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vim9class.c b/src/vim9class.c index 52c2f764db..4314b52901 100644 --- a/src/vim9class.c +++ b/src/vim9class.c @@ -136,6 +136,13 @@ parse_member( fill_evalarg_from_eap(&evalarg, eap, FALSE); (void)skip_expr_concatenate(&init_arg, &expr_start, &expr_end, &evalarg); + init_arg = skipwhite(init_arg); + if (*init_arg != NUL) + { + semsg(_(e_trailing_characters_str), init_arg); + return FAIL; + } + // No type specified for the member. Set it to "any" and the correct // type will be set when the object is instantiated. if (type == NULL) |