mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
vim-patch:8.2.0578: heredoc for interfaces does not support "trim"
Problem: Heredoc for interfaces does not support "trim".
Solution: Update the script heredoc support to be same as the :let command.
(Yegappan Lakshmanan, closes vim/vim#5916)
6c2b7b8055
This commit is contained in:
@@ -171,3 +171,22 @@ func Test_Catch_Exception_Message()
|
||||
call assert_match('^Vim(.*):.*RuntimeError: TEST$', v:exception )
|
||||
endtry
|
||||
endfunc
|
||||
|
||||
" Test for various heredoc syntax
|
||||
func Test_python_heredoc()
|
||||
python << END
|
||||
s='A'
|
||||
END
|
||||
python <<
|
||||
s+='B'
|
||||
.
|
||||
python << trim END
|
||||
s+='C'
|
||||
END
|
||||
python << trim
|
||||
s+='D'
|
||||
.
|
||||
call assert_equal('ABCD', pyxeval('s'))
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user