comparison src/testdir/test_let.vim @ 28813:3626ca6a20ea v8.2.4930

patch 8.2.4930: interpolated string expression requires escaping Commit: https://github.com/vim/vim/commit/0abc2871c105882ed1c1effb9a7757fad8a395bd Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 10 13:24:30 2022 +0100 patch 8.2.4930: interpolated string expression requires escaping Problem: Interpolated string expression requires escaping. Solution: Do not require escaping in the expression.
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 May 2022 14:30:04 +0200
parents 723c7d940cba
children bbcdc76dcd71
comparison
equal deleted inserted replaced
28812:483371d05cd5 28813:3626ca6a20ea
385 call assert_equal('{text}', $'{{text}}') 385 call assert_equal('{text}', $'{{text}}')
386 call assert_equal('{{text}}', $'{{{{text}}}}') 386 call assert_equal('{{text}}', $'{{{{text}}}}')
387 let text = 'text' 387 let text = 'text'
388 call assert_equal('text{{', $'{text .. "{{"}') 388 call assert_equal('text{{', $'{text .. "{{"}')
389 call assert_equal('text{{', $"{text .. '{{'}") 389 call assert_equal('text{{', $"{text .. '{{'}")
390 " FIXME: should not need to escape quotes in the expression 390 call assert_equal('text{{', $'{text .. '{{'}')
391 call assert_equal('text{{', $'{text .. ''{{''}') 391 call assert_equal('text{{', $"{text .. "{{"}")
392 call assert_equal('text{{', $"{text .. \"{{\"}")
393 endfunc 392 endfunc
394 393
395 " Test for the setting a variable using the heredoc syntax. 394 " Test for the setting a variable using the heredoc syntax.
396 " Keep near the end, this messes up highlighting. 395 " Keep near the end, this messes up highlighting.
397 func Test_let_heredoc() 396 func Test_let_heredoc()