aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/viml/parser/expressions.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-11-19 21:13:27 +0300
committerZyX <kp-pav@yandex.ru>2017-11-19 21:13:27 +0300
commitf20f97c936f1438589c8176f62ce69c26e255f85 (patch)
treea39df3b653f20f13f6cfed9f814e837febfd170d /src/nvim/viml/parser/expressions.c
parenta94255a7ac22649311f858e39b217543d0d7e5e8 (diff)
downloadrneovim-f20f97c936f1438589c8176f62ce69c26e255f85.tar.gz
rneovim-f20f97c936f1438589c8176f62ce69c26e255f85.tar.bz2
rneovim-f20f97c936f1438589c8176f62ce69c26e255f85.zip
*: Fix linter errors
Diffstat (limited to 'src/nvim/viml/parser/expressions.c')
-rw-r--r--src/nvim/viml/parser/expressions.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/nvim/viml/parser/expressions.c b/src/nvim/viml/parser/expressions.c
index 0824b3ca7d..6c7c328b6d 100644
--- a/src/nvim/viml/parser/expressions.c
+++ b/src/nvim/viml/parser/expressions.c
@@ -2014,17 +2014,20 @@ viml_pexpr_parse_process_token:
lambda_node->data.fig.type_guesses.allow_lambda = false;
if (lambda_node->children != NULL
&& lambda_node->children->type == kExprNodeComma) {
- // If lambda has comma child this means that parser has already seen at
- // least "{arg1,", so node cannot possibly be anything, but lambda.
-
- // Vim may give E121 or E720 in this case, but it does not look right to
- // have either because both are results of reevaluation possibly-lambda
- // node as a dictionary and here this is not going to happen.
+ // If lambda has comma child this means that parser has already seen
+ // at least "{arg1,", so node cannot possibly be anything, but
+ // lambda.
+
+ // Vim may give E121 or E720 in this case, but it does not look
+ // right to have either because both are results of reevaluation
+ // possibly-lambda node as a dictionary and here this is not going
+ // to happen.
ERROR_FROM_TOKEN_AND_MSG(
- cur_token, _("E15: Expected lambda arguments list or arrow: %.*s"));
+ cur_token,
+ _("E15: Expected lambda arguments list or arrow: %.*s"));
} else {
- // Else it may appear that possibly-lambda node is actually a dictionary
- // or curly-braces-name identifier.
+ // Else it may appear that possibly-lambda node is actually
+ // a dictionary or curly-braces-name identifier.
lambda_node = NULL;
kv_drop(pt_stack, 1);
}