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:
parent
8f13d82fa6
commit
c6e57b74fa
@ -3586,7 +3586,7 @@ eval_index(
|
||||
;
|
||||
if (keylen == 0)
|
||||
return FAIL;
|
||||
*arg = skipwhite(key + keylen);
|
||||
*arg = key + keylen;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1671,
|
||||
/**/
|
||||
1670,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user