diff options
| author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-06 18:10:30 +0100 |
|---|---|---|
| committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-12 22:35:20 +0100 |
| commit | aa2dc8b7b4e0e86c9102f2df6b670317c5693657 (patch) | |
| tree | 669a96d841cc4ab90c83bbb1b86ed5cc38013c3b /src/nvim/testdir/test_syntax.vim | |
| parent | 003c8acc8a9863932430bfb51bee8403b964c19b (diff) | |
| download | rneovim-aa2dc8b7b4e0e86c9102f2df6b670317c5693657.tar.gz rneovim-aa2dc8b7b4e0e86c9102f2df6b670317c5693657.tar.bz2 rneovim-aa2dc8b7b4e0e86c9102f2df6b670317c5693657.zip | |
vim-patch:8.1.1809: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Add has_key(), split(), str2list(), etc.
https://github.com/vim/vim/commit/a74e4946de074d2916e3d6004f7fa1810d12dda9
Diffstat (limited to 'src/nvim/testdir/test_syntax.vim')
| -rw-r--r-- | src/nvim/testdir/test_syntax.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_syntax.vim b/src/nvim/testdir/test_syntax.vim index 875e23894f..2344bac498 100644 --- a/src/nvim/testdir/test_syntax.vim +++ b/src/nvim/testdir/test_syntax.vim @@ -546,8 +546,8 @@ func Test_synstack_synIDtrans() call assert_equal([], synstack(1, 1)) norm f/ - call assert_equal(['cComment', 'cCommentStart'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")')) - call assert_equal(['Comment', 'Comment'], map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")')) + eval synstack(line("."), col("."))->map('synIDattr(v:val, "name")')->assert_equal(['cComment', 'cCommentStart']) + eval synstack(line("."), col("."))->map('synIDattr(synIDtrans(v:val), "name")')->assert_equal(['Comment', 'Comment']) norm fA call assert_equal(['cComment'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")')) |