Mercurial > vim
comparison src/vim9class.c @ 35062:f57990be7526 v9.1.0376
patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignored
Commit: https://github.com/vim/vim/commit/ac7731895c996acef4d02b784f9952749226e203
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Apr 27 11:36:12 2024 +0200
patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignored
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Apr 2024 12:00:03 +0200 |
parents | 8c9e43278b2c |
children | 60a7fae99560 |
comparison
equal
deleted
inserted
replaced
35061:04ab7e07642d | 35062:f57990be7526 |
---|---|
133 } | 133 } |
134 init_arg = skipwhite(init_arg + 1); | 134 init_arg = skipwhite(init_arg + 1); |
135 | 135 |
136 fill_evalarg_from_eap(&evalarg, eap, FALSE); | 136 fill_evalarg_from_eap(&evalarg, eap, FALSE); |
137 (void)skip_expr_concatenate(&init_arg, &expr_start, &expr_end, &evalarg); | 137 (void)skip_expr_concatenate(&init_arg, &expr_start, &expr_end, &evalarg); |
138 | |
139 init_arg = skipwhite(init_arg); | |
140 if (*init_arg != NUL) | |
141 { | |
142 semsg(_(e_trailing_characters_str), init_arg); | |
143 return FAIL; | |
144 } | |
138 | 145 |
139 // No type specified for the member. Set it to "any" and the correct | 146 // No type specified for the member. Set it to "any" and the correct |
140 // type will be set when the object is instantiated. | 147 // type will be set when the object is instantiated. |
141 if (type == NULL) | 148 if (type == NULL) |
142 type = &t_any; | 149 type = &t_any; |