comparison src/testdir/test_true_false.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 d606560082e6
children 2a017e9dc6da
comparison
equal deleted inserted replaced
17913:be8ab5bb74ce 17914:af3d441845cd
98 return a:d 98 return a:d
99 endfunction 99 endfunction
100 call Try_arg_true_false('maparg("asdf", "i", %v%)', "", "asdff") 100 call Try_arg_true_false('maparg("asdf", "i", %v%)', "", "asdff")
101 call Try_arg_true_false('FilterMapArg(maparg("asdf", "i", 1, %v%))', "asdff", {'rhs': 'asdff'}) 101 call Try_arg_true_false('FilterMapArg(maparg("asdf", "i", 1, %v%))', "asdff", {'rhs': 'asdff'})
102 102
103 call Try_arg_true_false('hasmapto("asdf", "i", %v%)', 0, 1) 103 call Try_arg_true_false('"asdf"->hasmapto("i", %v%)', 0, 1)
104 104
105 new colored 105 new colored
106 call setline(1, '<here>') 106 call setline(1, '<here>')
107 syn match brackets "<.*>" 107 syn match brackets "<.*>"
108 syn match here "here" transparent 108 syn match here "here" transparent