Mercurial > vim
comparison src/testdir/test_let.vim @ 17178:40c4cb095d53 v8.1.1588
patch 8.1.1588: in :let-heredoc line continuation is recognized
commit https://github.com/vim/vim/commit/e96a2498f9a2d3e93ac07431f6d4afd77f30afdf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 25 04:12:16 2019 +0200
patch 8.1.1588: in :let-heredoc line continuation is recognized
Problem: In :let-heredoc line continuation is recognized.
Solution: Do not consume line continuation. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4580)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Jun 2019 04:15:08 +0200 |
parents | 6990c1160ea5 |
children | 509542f1fffb |
comparison
equal
deleted
inserted
replaced
17177:b58feb1a84f0 | 17178:40c4cb095d53 |
---|---|
235 something | 235 something |
236 endfunc | 236 endfunc |
237 END | 237 END |
238 call assert_equal(['something', 'endfunc'], var1) | 238 call assert_equal(['something', 'endfunc'], var1) |
239 | 239 |
240 " not concatenate lines | |
241 let var1 =<< END | |
242 some | |
243 \thing | |
244 \ else | |
245 END | |
246 call assert_equal(['some', ' \thing', ' \ else'], var1) | |
247 | |
240 " ignore "python << xx" | 248 " ignore "python << xx" |
241 let var1 =<<END | 249 let var1 =<<END |
242 something | 250 something |
243 python << xx | 251 python << xx |
244 END | 252 END |