diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-23 13:11:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-23 13:11:37 +0200 |
commit | 63be3d4ba01d565e645d8bf7f4dc900fc9011534 (patch) | |
tree | 52375a30387a79924200a31e33a5a574bb9202dd /src/eval.c | |
parent | c69950ac17225d07f973b39d5b0eb94291077808 (diff) | |
download | vim-git-63be3d4ba01d565e645d8bf7f4dc900fc9011534.tar.gz |
patch 8.2.1274: Vim9: no error for missing white space at script levelv8.2.1274
Problem: Vim9: no error for missing white space in assignment at script
level.
Solution: Check for white space. (closes #6495)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index a8e388db0..bb75528ca 100644 --- a/src/eval.c +++ b/src/eval.c @@ -4996,7 +4996,8 @@ find_name_end( for (p = arg; *p != NUL && (eval_isnamec(*p) || (*p == '{' && !vim9script) - || ((flags & FNE_INCL_BR) && (*p == '[' || *p == '.')) + || ((flags & FNE_INCL_BR) && (*p == '[' + || (*p == '.' && eval_isnamec1(p[1])))) || mb_nest != 0 || br_nest != 0); MB_PTR_ADV(p)) { |