0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.2.1073: Vim9: no line break allowed in () expression

Problem:    Vim9: no line break allowed in () expression.
Solution:   Skip a line break.
This commit is contained in:
Bram Moolenaar
2020-06-27 20:46:29 +02:00
parent a0a0c4147f
commit 7a4981b936
3 changed files with 28 additions and 0 deletions

View File

@@ -1137,6 +1137,19 @@ def Test_expr7_parens()
assert_equal(true, !+-+0)
enddef
def Test_expr7_parens_vim9script()
let lines =<< trim END
vim9script
let s = (
'one'
..
'two'
)
assert_equal('onetwo', s)
END
CheckScriptSuccess(lines)
enddef
def Test_expr7_negate()
assert_equal(-99, -99)
assert_equal(99, --99)