1
0
forked from aniani/vim

patch 8.2.1671: Vim9: stray error for missing white space

Problem:    Vim9: stray error for missing white space.
Solution:   Do not skip over white space after member. (closes #6817)
This commit is contained in:
Bram Moolenaar 2020-09-12 21:27:03 +02:00
parent 8f13d82fa6
commit c6e57b74fa
3 changed files with 13 additions and 1 deletions

View File

@ -3586,7 +3586,7 @@ eval_index(
;
if (keylen == 0)
return FAIL;
*arg = skipwhite(key + keylen);
*arg = key + keylen;
}
else
{

View File

@ -2314,6 +2314,16 @@ def Test_expr7_list_subscript()
CheckScriptFailure(['vim9script'] + lines, 'E1030:', 3)
enddef
def Test_expr7_dict_subscript()
let lines =<< trim END
vim9script
let l = [#{lnum: 2}, #{lnum: 1}]
let res = l[0].lnum > l[1].lnum
assert_true(res)
END
CheckScriptSuccess(lines)
enddef
def Test_expr7_subscript_linebreak()
let range = range(
3)

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1671,
/**/
1670,
/**/