mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -1394,7 +1394,7 @@ compile_lhs(
|
||||
if (is_decl)
|
||||
{
|
||||
if (script_namespace)
|
||||
semsg(_(e_cannot_declare_script_variable_in_function),
|
||||
semsg(_(e_cannot_declare_script_variable_in_function_str),
|
||||
lhs->lhs_name);
|
||||
else
|
||||
semsg(_(e_variable_already_declared_in_script_str),
|
||||
|
Reference in New Issue
Block a user