mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3696: Vim9: error for invalid assignment when skipping
Problem: Vim9: error for invalid assignment when skipping. Solution: Do not check white space when skipping. (closes #9243)
This commit is contained in:
@@ -1854,6 +1854,12 @@ def Test_unlet()
|
||||
'var ll = [1, 2]',
|
||||
'unlet ll[0: 1]',
|
||||
], 'E1004:', 2)
|
||||
# command recognized as assignment when skipping, should not give an error
|
||||
CheckScriptSuccess([
|
||||
'vim9script',
|
||||
'for i in []',
|
||||
" put =''",
|
||||
'endfor'])
|
||||
|
||||
CheckDefFailure([
|
||||
'var ll = [1, 2]',
|
||||
|
Reference in New Issue
Block a user