diff src/eval.c @ 21447:369cde0d5771 v8.2.1274

patch 8.2.1274: Vim9: no error for missing white space at script level Commit: https://github.com/vim/vim/commit/63be3d4ba01d565e645d8bf7f4dc900fc9011534 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 23 13:11:37 2020 +0200 patch 8.2.1274: Vim9: no error for missing white space at script level Problem: Vim9: no error for missing white space in assignment at script level. Solution: Check for white space. (closes #6495)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jul 2020 13:15:07 +0200
parents 66386ca8a69f
children 4dfd00f481fb
line wrap: on
line diff
--- 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))
     {