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

patch 8.2.2396: Vim9: no white space allowed before "->"

Problem:    Vim9: no white space allowed before "->".
Solution:   Allow for white space. (closes #7725)
This commit is contained in:
Bram Moolenaar
2021-01-23 14:22:16 +01:00
parent 9a562c184d
commit 7cebe8ba7d
4 changed files with 24 additions and 11 deletions

View File

@@ -319,6 +319,20 @@ def Test_method_call_linebreak()
CheckScriptSuccess(lines)
enddef
def Test_method_call_whitespace()
var lines =<< trim END
new
var yank = 'text'
yank->setline(1)
yank ->setline(2)
yank-> setline(3)
yank -> setline(4)
assert_equal(['text', 'text', 'text', 'text'], getline(1, 4))
bwipe!
END
CheckDefAndScriptSuccess(lines)
enddef
def Test_skipped_expr_linebreak()
if 0
var x = []