0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2897: Vim9: can use reserved words at the script level

Problem:    Vim9: can use reserved words at the script level.
Solution:   Check variable names for reserved words. (closes #8253)
This commit is contained in:
Bram Moolenaar
2021-05-28 21:06:08 +02:00
parent dc3275a1ac
commit d0edaf9dc2
6 changed files with 39 additions and 19 deletions

View File

@@ -1309,6 +1309,9 @@ set_var_lval(
{
cc = *endp;
*endp = NUL;
if (in_vim9script() && check_reserved_name(lp->ll_name) == FAIL)
return;
if (lp->ll_blob != NULL)
{
int error = FALSE, val;