summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-23 13:11:37 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-23 13:11:37 +0200
commit63be3d4ba01d565e645d8bf7f4dc900fc9011534 (patch)
tree52375a30387a79924200a31e33a5a574bb9202dd /src/eval.c
parentc69950ac17225d07f973b39d5b0eb94291077808 (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index a8e388db01..bb75528ca7 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))
{