comparison src/testdir/test_syntax.vim @ 17624:4c7097a980a5 v8.1.1809

patch 8.1.1809: more functions can be used as a method commit https://github.com/vim/vim/commit/a74e4946de074d2916e3d6004f7fa1810d12dda9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 4 17:35:53 2019 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Aug 2019 17:45:05 +0200
parents 892b4ea3bad6
children 0da9bc55c31a
comparison
equal deleted inserted replaced
17623:f1ad91791bf5 17624:4c7097a980a5
515 call setline(1, ' /* A comment with a TODO */') 515 call setline(1, ' /* A comment with a TODO */')
516 516
517 call assert_equal([], synstack(1, 1)) 517 call assert_equal([], synstack(1, 1))
518 518
519 norm f/ 519 norm f/
520 call assert_equal(['cComment', 'cCommentStart'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")')) 520 eval synstack(line("."), col("."))->map('synIDattr(v:val, "name")')->assert_equal(['cComment', 'cCommentStart'])
521 call assert_equal(['Comment', 'Comment'], map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")')) 521 eval synstack(line("."), col("."))->map('synIDattr(synIDtrans(v:val), "name")')->assert_equal(['Comment', 'Comment'])
522 522
523 norm fA 523 norm fA
524 call assert_equal(['cComment'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")')) 524 call assert_equal(['cComment'], map(synstack(line("."), col(".")), 'synIDattr(v:val, "name")'))
525 call assert_equal(['Comment'], map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")')) 525 call assert_equal(['Comment'], map(synstack(line("."), col(".")), 'synIDattr(synIDtrans(v:val), "name")'))
526 526