mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 19:11:52 +00:00
vim-patch:9.1.0329: String interpolation fails for Dict type (#28335)
Problem: String interpolation fails for Dict type
Solution: Support Dict data type properly, also support :put =Dict
(without having to convert it to string() first)
(Yegappan Lakshmanan)
fixes: vim/vim#14529
closes: vim/vim#14541
f01493c550
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -687,6 +687,13 @@ END
|
||||
END
|
||||
call assert_equal(['let a = {abc}', 'let b = X', 'let c = {'], code)
|
||||
|
||||
" Evaluate a dictionary
|
||||
let d1 = #{a: 10, b: 'ss', c: {}}
|
||||
let code =<< eval trim END
|
||||
let d2 = {d1}
|
||||
END
|
||||
call assert_equal(["let d2 = {'a': 10, 'b': 'ss', 'c': {}}"], code)
|
||||
|
||||
let code = 'xxx'
|
||||
let code =<< eval trim END
|
||||
let n = {5 +
|
||||
|
||||
Reference in New Issue
Block a user