mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.4883: string interpolation only works in heredoc
Problem: String interpolation only works in heredoc.
Solution: Support interpolated strings. Use syntax for heredoc consistent
with strings, similar to C#. (closes #10327)
This commit is contained in:
@@ -377,7 +377,7 @@ func Test_Debugger_breakadd_expr()
|
||||
let expected =<< eval trim END
|
||||
Oldval = "10"
|
||||
Newval = "11"
|
||||
`=fnamemodify('Xtest.vim', ':p')`
|
||||
{fnamemodify('Xtest.vim', ':p')}
|
||||
line 1: let g:Xtest_var += 1
|
||||
END
|
||||
call RunDbgCmd(buf, ':source %', expected)
|
||||
@@ -385,7 +385,7 @@ func Test_Debugger_breakadd_expr()
|
||||
let expected =<< eval trim END
|
||||
Oldval = "11"
|
||||
Newval = "12"
|
||||
`=fnamemodify('Xtest.vim', ':p')`
|
||||
{fnamemodify('Xtest.vim', ':p')}
|
||||
line 1: let g:Xtest_var += 1
|
||||
END
|
||||
call RunDbgCmd(buf, ':source %', expected)
|
||||
|
||||
Reference in New Issue
Block a user