summaryrefslogtreecommitdiff
path: root/src/testdir/test_syntax.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-04 17:35:53 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-04 17:35:53 +0200
commita74e4946de074d2916e3d6004f7fa1810d12dda9 (patch)
tree7c9ef20c9c2b2aab3ce363697623e290a456ce6d /src/testdir/test_syntax.vim
parente4ce825a55ad2445a212ce30837a3af566b7af6b (diff)
downloadvim-git-a74e4946de074d2916e3d6004f7fa1810d12dda9.tar.gz
patch 8.1.1809: more functions can be used as a methodv8.1.1809
Problem: More functions can be used as a method. Solution: Add has_key(), split(), str2list(), etc.
Diffstat (limited to 'src/testdir/test_syntax.vim')
-rw-r--r--src/testdir/test_syntax.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_syntax.vim b/src/testdir/test_syntax.vim
index 562a44ce1..a316ce7e6 100644
--- a/src/testdir/test_syntax.vim
+++ b/src/testdir/test_syntax.vim
@@ -517,8 +517,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")'))