0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1361: error for white space after expression in assignment

Problem:    Error for white space after expression in assignment.
Solution:   Skip over white space. (closes #6617)
This commit is contained in:
Bram Moolenaar
2020-08-04 15:53:01 +02:00
parent f96e9dec63
commit 6a25026262
3 changed files with 6 additions and 0 deletions

View File

@@ -903,6 +903,7 @@ get_lval(
clear_tv(&var1); clear_tv(&var1);
return NULL; return NULL;
} }
p = skipwhite(p);
} }
// Optionally get the second index [ :expr]. // Optionally get the second index [ :expr].

View File

@@ -55,6 +55,9 @@ func Test_dict()
let d['a'] = 'aaa' let d['a'] = 'aaa'
call assert_equal('none', d['']) call assert_equal('none', d[''])
call assert_equal('aaa', d['a']) call assert_equal('aaa', d['a'])
let d[ 'b' ] = 'bbb'
call assert_equal('bbb', d[ 'b' ])
endfunc endfunc
func Test_strgetchar() func Test_strgetchar()

View File

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