diff options
| author | ii14 <ii14@users.noreply.github.com> | 2022-09-07 20:45:22 +0200 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-08 08:17:30 +0800 |
| commit | 4a67f9d386bb16149eecf32f45a3cb73878f12e7 (patch) | |
| tree | f5235ef14dce746338bf8fb12a3b0c0d5facb788 /src/nvim/testdir | |
| parent | 93a0c2dd63e369528664037b118ff9b9b38a20d4 (diff) | |
| download | rneovim-4a67f9d386bb16149eecf32f45a3cb73878f12e7.tar.gz rneovim-4a67f9d386bb16149eecf32f45a3cb73878f12e7.tar.bz2 rneovim-4a67f9d386bb16149eecf32f45a3cb73878f12e7.zip | |
vim-patch:9.0.0409: #{g:x} was seen as a curly-braces expression
Problem: #{g:x} was seen as a curly-braces expression.
Solution: Do never see #{} as a curly-braces expression. (closes vim/vim#11075)
https://github.com/vim/vim/commit/7c7e1e9b98d4e5dbe7358c795a635c6f1f36f418
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_listdict.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listdict.vim b/src/nvim/testdir/test_listdict.vim index f0440ae14b..9cef6905a5 100644 --- a/src/nvim/testdir/test_listdict.vim +++ b/src/nvim/testdir/test_listdict.vim @@ -168,6 +168,10 @@ func Test_dict() " allow key starting with number at the start, not a curly expression call assert_equal({'1foo': 77}, #{1foo: 77}) + + " #{expr} is not a curly expression + let x = 'x' + call assert_equal(#{g: x}, #{g:x}) endfunc " Dictionary identity |