commit | d0edaf9dc253e619ccc321ceaac321aee11c1ea5 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri May 28 21:06:08 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri May 28 21:06:08 2021 +0200 |
tree | 27559339d69ea3bcfaa8cc8e6a87fd6e752c0d4b | |
parent | dc3275a1ac73b6c4d0c9d2e238ea80b477705b6f [diff] [blame] |
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)
diff --git a/src/eval.c b/src/eval.c index 008b032..8e55435 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -1309,6 +1309,9 @@ { cc = *endp; *endp = NUL; + if (in_vim9script() && check_reserved_name(lp->ll_name) == FAIL) + return; + if (lp->ll_blob != NULL) { int error = FALSE, val;