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