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

patch 8.2.2081: Vim9: cannot handle a linebreak after "=" in assignment

Problem:    Vim9: cannot handle a linebreak after "=" in assignment.
Solution:   Skip over linebreak. (closes #7407)
This commit is contained in:
Bram Moolenaar
2020-12-02 15:11:18 +01:00
parent ea87069d78
commit 7f76494aac
4 changed files with 23 additions and 3 deletions

View File

@@ -225,6 +225,21 @@ def Test_assignment()
END
enddef
def Test_assign_linebreak()
var nr: number
nr =
123
assert_equal(123, nr)
var n2: number
[nr, n2] =
[12, 34]
assert_equal(12, nr)
assert_equal(34, n2)
CheckDefFailure(["var x = #"], 'E1097:', 2)
enddef
def Test_assign_index()
# list of list
var l1: list<number>