comparison src/testdir/test_vim9_assign.vim @ 26330:55e658312376 v8.2.3696

patch 8.2.3696: Vim9: error for invalid assignment when skipping Commit: https://github.com/vim/vim/commit/7f2c34166402740a661131d6341bbf874bdb3d48 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 29 16:01:49 2021 +0000 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 https://github.com/vim/vim/issues/9243)
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Nov 2021 17:15:04 +0100
parents 7351926fbe9e
children 8be6413a8e27
comparison
equal deleted inserted replaced
26329:8afd7aa25ab6 26330:55e658312376
1852 ], 'E1004:', 2) 1852 ], 'E1004:', 2)
1853 CheckDefFailure([ 1853 CheckDefFailure([
1854 'var ll = [1, 2]', 1854 'var ll = [1, 2]',
1855 'unlet ll[0: 1]', 1855 'unlet ll[0: 1]',
1856 ], 'E1004:', 2) 1856 ], 'E1004:', 2)
1857 # command recognized as assignment when skipping, should not give an error
1858 CheckScriptSuccess([
1859 'vim9script',
1860 'for i in []',
1861 " put =''",
1862 'endfor'])
1857 1863
1858 CheckDefFailure([ 1864 CheckDefFailure([
1859 'var ll = [1, 2]', 1865 'var ll = [1, 2]',
1860 'unlet ll["x" : 1]', 1866 'unlet ll["x" : 1]',
1861 ], 'E1012:', 2) 1867 ], 'E1012:', 2)