diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-05 21:13:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-05 21:13:26 +0000 |
commit | 9fb7b42935f13b5d3407eb82b151da1e9b4b6048 (patch) | |
tree | ee717c21805958cca820cfba8e4d4256e7730fed /src/errors.h | |
parent | b2175220dafc28349b275ac7f3080f89cce78a57 (diff) |
patch 8.2.4515: old subsitute syntax is still supportedv8.2.4515
Problem: Old subsitute syntax is still supported.
Solution: Disallow using backslash after ":s" in Vim9 script.
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index e302ecc6ed..6f275fa412 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3246,4 +3246,6 @@ EXTERN char e_cannot_use_s_colon_in_vim9_script_str[] INIT(= N_("E1268: Cannot use s: in Vim9 script: %s")); EXTERN char e_cannot_create_vim9_script_variable_in_function_str[] INIT(= N_("E1269: Cannot create a Vim9 script variable in a function: %s")); +EXTERN char e_cannot_use_s_backslash_in_vim9_script[] + INIT(= N_("E1270: Cannot use :s\\/sub/ in Vim9 script")); #endif |