Mercurial > vim
diff src/testdir/test_syn_attr.vim @ 17914:af3d441845cd v8.1.1953
patch 8.1.1953: more functions can be used as a method
Commit: https://github.com/vim/vim/commit/f9f24ce7a0e5988fedf2e2ff751818f9b07510a6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 31 21:17:39 2019 +0200
patch 8.1.1953: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Aug 2019 21:30:04 +0200 |
parents | 201773c00b96 |
children | 624109b3766e |
line wrap: on
line diff
--- a/src/testdir/test_syn_attr.vim +++ b/src/testdir/test_syn_attr.vim @@ -3,7 +3,7 @@ func Test_missing_attr() hi Mine term=bold cterm=italic call assert_equal('Mine', synIDattr(hlID("Mine"), "name")) - call assert_equal('', synIDattr(hlID("Mine"), "bg", 'term')) + call assert_equal('', synIDattr("Mine"->hlID(), "bg", 'term')) call assert_equal('1', synIDattr(hlID("Mine"), "bold", 'term')) call assert_equal('1', synIDattr(hlID("Mine"), "italic", 'cterm')) hi Mine term=reverse cterm=inverse @@ -12,7 +12,7 @@ func Test_missing_attr() hi Mine term=underline cterm=standout gui=undercurl call assert_equal('1', synIDattr(hlID("Mine"), "underline", 'term')) call assert_equal('1', synIDattr(hlID("Mine"), "standout", 'cterm')) - call assert_equal('1', synIDattr(hlID("Mine"), "undercurl", 'gui')) + call assert_equal('1', synIDattr("Mine"->hlID(), "undercurl", 'gui')) hi Mine term=NONE cterm=NONE gui=NONE call assert_equal('', synIDattr(hlID("Mine"), "bold", 'term')) call assert_equal('', synIDattr(hlID("Mine"), "italic", 'cterm'))