mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.2855: white space after "->" does not give E274
Problem: White space after "->" does not give E274. Solution: Do not skip white space in legacy script. (closes #8212)
This commit is contained in:
@@ -131,11 +131,12 @@ func Test_method_syntax()
|
||||
eval [1, 2, 3]
|
||||
\ ->sort(
|
||||
\ )
|
||||
eval [1, 2, 3]-> sort()
|
||||
eval [1, 2, 3]->sort()
|
||||
|
||||
call assert_fails('eval [1, 2, 3]->sort ()', 'E274:')
|
||||
call assert_fails('eval [1, 2, 3] ->sort ()', 'E274:')
|
||||
call assert_fails('eval [1, 2, 3]-> sort ()', 'E274:')
|
||||
call assert_fails('eval [1, 2, 3]-> sort()', 'E274:')
|
||||
endfunc
|
||||
|
||||
func Test_method_lambda()
|
||||
|
||||
Reference in New Issue
Block a user