diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-08 08:12:10 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-08 08:15:55 +0800 |
| commit | 93a0c2dd63e369528664037b118ff9b9b38a20d4 (patch) | |
| tree | 8baf4e0bead7c077649960b005c3e9fe16b12d60 /src/nvim/testdir | |
| parent | ead524656dc1664622f80509a983519a190ca48a (diff) | |
| download | rneovim-93a0c2dd63e369528664037b118ff9b9b38a20d4.tar.gz rneovim-93a0c2dd63e369528664037b118ff9b9b38a20d4.tar.bz2 rneovim-93a0c2dd63e369528664037b118ff9b9b38a20d4.zip | |
vim-patch:8.2.3702: first key in dict is seen as curly expression and fails
Problem: First key in dict is seen as curly expression and fails.
Solution: Ignore failure of curly expression. (closes vim/vim#9247)
https://github.com/vim/vim/commit/98cb90ef865089a5ddd20bc0303d449fb7d97fb2
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_listdict.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listdict.vim b/src/nvim/testdir/test_listdict.vim index 08c415a069..f0440ae14b 100644 --- a/src/nvim/testdir/test_listdict.vim +++ b/src/nvim/testdir/test_listdict.vim @@ -165,6 +165,9 @@ func Test_dict() call assert_equal({'c': 'ccc', '1': 99, 'b': [1, 2, function('strlen')], '3': 33, '-1': {'a': 1}}, d) call filter(d, 'v:key =~ ''[ac391]''') call assert_equal({'c': 'ccc', '1': 99, '3': 33, '-1': {'a': 1}}, d) + + " allow key starting with number at the start, not a curly expression + call assert_equal({'1foo': 77}, #{1foo: 77}) endfunc " Dictionary identity |