Mercurial > vim
comparison src/errors.h @ 27669:5c4ab8d4472c v8.2.4360
patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistencies
Commit: https://github.com/vim/vim/commit/a749a42ed25534c88c636e5ab6603f1f97b857a4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 12 19:52:25 2022 +0000
patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistencies
Problem: Vim9: allowing use of "s:" leads to inconsistencies.
Solution: Disallow using "s:" in Vim9 script at the script level.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Feb 2022 21:00:03 +0100 |
parents | db1831f585a4 |
children | fae9567b8024 |
comparison
equal
deleted
inserted
replaced
27668:407a08328369 | 27669:5c4ab8d4472c |
---|---|
2826 INIT(= N_("E1098: String, List or Blob required")); | 2826 INIT(= N_("E1098: String, List or Blob required")); |
2827 EXTERN char e_unknown_error_while_executing_str[] | 2827 EXTERN char e_unknown_error_while_executing_str[] |
2828 INIT(= N_("E1099: Unknown error while executing %s")); | 2828 INIT(= N_("E1099: Unknown error while executing %s")); |
2829 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] | 2829 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] |
2830 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); | 2830 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); |
2831 EXTERN char e_cannot_declare_script_variable_in_function[] | 2831 EXTERN char e_cannot_declare_script_variable_in_function_str[] |
2832 INIT(= N_("E1101: Cannot declare a script variable in a function: %s")); | 2832 INIT(= N_("E1101: Cannot declare a script variable in a function: %s")); |
2833 EXTERN char e_lambda_function_not_found_str[] | 2833 EXTERN char e_lambda_function_not_found_str[] |
2834 INIT(= N_("E1102: Lambda function not found: %s")); | 2834 INIT(= N_("E1102: Lambda function not found: %s")); |
2835 EXTERN char e_dictionary_not_set[] | 2835 EXTERN char e_dictionary_not_set[] |
2836 INIT(= N_("E1103: Dictionary not set")); | 2836 INIT(= N_("E1103: Dictionary not set")); |
3230 INIT(= N_("E1266: Critical error in python3 initialization, check your python3 installation")); | 3230 INIT(= N_("E1266: Critical error in python3 initialization, check your python3 installation")); |
3231 #endif | 3231 #endif |
3232 #ifdef FEAT_EVAL | 3232 #ifdef FEAT_EVAL |
3233 EXTERN char e_function_name_must_start_with_capital_str[] | 3233 EXTERN char e_function_name_must_start_with_capital_str[] |
3234 INIT(= N_("E1267: Function name must start with a capital: %s")); | 3234 INIT(= N_("E1267: Function name must start with a capital: %s")); |
3235 #endif | 3235 EXTERN char e_cannot_use_s_colon_in_vim9_script_str[] |
3236 INIT(= N_("E1268: Cannot use s: in Vim9 script: %s")); | |
3237 #endif |