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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user