0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.2.1042: Vim9: cannot put an operator on the next line

Problem:    Vim9: cannot put an operator on the next line.
Solution:   Require a colon before a range to see if that causes problems.
This commit is contained in:
Bram Moolenaar
2020-06-22 23:02:51 +02:00
parent 7eaafe65ee
commit df069eec3b
7 changed files with 59 additions and 25 deletions

View File

@@ -585,12 +585,12 @@ func Test_expr5_fails()
call CheckDefFailure(["let x = '1' ..'2'"], msg)
call CheckDefFailure(["let x = '1'.. '2'"], msg)
call CheckDefFailure(["let x = 0z1122 + 33"], 'E1035')
call CheckDefFailure(["let x = 0z1122 + [3]"], 'E1035')
call CheckDefFailure(["let x = 0z1122 + 'asd'"], 'E1035')
call CheckDefFailure(["let x = 33 + 0z1122"], 'E1035')
call CheckDefFailure(["let x = [3] + 0z1122"], 'E1035')
call CheckDefFailure(["let x = 'asdf' + 0z1122"], 'E1035')
call CheckDefFailure(["let x = 0z1122 + 33"], 'E1051')
call CheckDefFailure(["let x = 0z1122 + [3]"], 'E1051')
call CheckDefFailure(["let x = 0z1122 + 'asd'"], 'E1051')
call CheckDefFailure(["let x = 33 + 0z1122"], 'E1051')
call CheckDefFailure(["let x = [3] + 0z1122"], 'E1051')
call CheckDefFailure(["let x = 'asdf' + 0z1122"], 'E1051')
call CheckDefFailure(["let x = 6 + xxx"], 'E1001')
endfunc