From 3f74c0ab32de7ed17dd16d9b06f5455a0bb1c297 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 6 Aug 2022 18:12:06 +0100 Subject: patch 9.0.0156: giving E1170 only in an expression is confusing Problem: Giving E1170 only in an expression is confusing. Solution: Give E1170 for any "#{ comment". (closes #10855) --- src/errors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/errors.h') diff --git a/src/errors.h b/src/errors.h index 977abbf14..3b23c88ad 100644 --- a/src/errors.h +++ b/src/errors.h @@ -2984,8 +2984,8 @@ EXTERN char e_argument_already_declared_in_script_str[] INIT(= N_("E1168: Argument already declared in the script: %s")); EXTERN char e_expression_too_recursive_str[] INIT(= N_("E1169: Expression too recursive: %s")); -EXTERN char e_cannot_use_hash_curly_to_start_comment_in_an_expression[] - INIT(= N_("E1170: Cannot use #{ to start a comment in an expression")); +EXTERN char e_cannot_use_hash_curly_to_start_comment[] + INIT(= N_("E1170: Cannot use #{ to start a comment")); EXTERN char e_missing_end_block[] INIT(= N_("E1171: Missing } after inline function")); EXTERN char e_cannot_use_default_values_in_lambda[] -- cgit v1.2.1