diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-09 23:01:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-09 23:01:02 +0100 |
commit | 1e1153600c0377472d62cc553173fe555ddcf5a7 (patch) | |
tree | 6b048ad52538ede86b31960d3c2f963411925c73 /src/testdir/test_matchadd_conceal.vim | |
parent | c46af534102c65b43912311d67f55f5049e5ef7a (diff) | |
download | vim-git-1e1153600c0377472d62cc553173fe555ddcf5a7.tar.gz |
patch 8.1.0711: test files still use function!v8.1.0711
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
Diffstat (limited to 'src/testdir/test_matchadd_conceal.vim')
-rw-r--r-- | src/testdir/test_matchadd_conceal.vim | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/testdir/test_matchadd_conceal.vim b/src/testdir/test_matchadd_conceal.vim index 123bdf066..8d774a000 100644 --- a/src/testdir/test_matchadd_conceal.vim +++ b/src/testdir/test_matchadd_conceal.vim @@ -9,7 +9,7 @@ endif source shared.vim -function! Test_simple_matchadd() +func Test_simple_matchadd() new 1put='# This is a Test' @@ -29,9 +29,9 @@ function! Test_simple_matchadd() call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16)) quit! -endfunction +endfunc -function! Test_simple_matchadd_and_conceal() +func Test_simple_matchadd_and_conceal() new setlocal concealcursor=n conceallevel=1 @@ -51,9 +51,9 @@ function! Test_simple_matchadd_and_conceal() call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16)) quit! -endfunction +endfunc -function! Test_matchadd_and_conceallevel_3() +func Test_matchadd_and_conceallevel_3() new setlocal conceallevel=3 @@ -92,9 +92,9 @@ function! Test_matchadd_and_conceallevel_3() syntax off quit! -endfunction +endfunc -function! Test_default_conceal_char() +func Test_default_conceal_char() new setlocal concealcursor=n conceallevel=1 @@ -128,9 +128,9 @@ function! Test_default_conceal_char() let &listchars = listchars_save quit! -endfunction +endfunc -function! Test_syn_and_match_conceal() +func Test_syn_and_match_conceal() new setlocal concealcursor=n conceallevel=1 @@ -164,9 +164,9 @@ function! Test_syn_and_match_conceal() syntax off quit! -endfunction +endfunc -function! Test_clearmatches() +func Test_clearmatches() new setlocal concealcursor=n conceallevel=1 @@ -203,9 +203,9 @@ function! Test_clearmatches() call assert_equal({'group': 'Conceal', 'pattern': '\%2l ', 'priority': 10, 'id': a[0].id, 'conceal': 'Z'}, a[0]) quit! -endfunction +endfunc -function! Test_using_matchaddpos() +func Test_using_matchaddpos() new setlocal concealcursor=n conceallevel=1 " set filetype and :syntax on to change screenattr() @@ -234,9 +234,9 @@ function! Test_using_matchaddpos() syntax off quit! -endfunction +endfunc -function! Test_matchadd_repeat_conceal_with_syntax_off() +func Test_matchadd_repeat_conceal_with_syntax_off() new " To test targets in the same line string is replaced with conceal char @@ -253,9 +253,9 @@ function! Test_matchadd_repeat_conceal_with_syntax_off() call assert_equal('t_tt', Screenline(2)) quit! -endfunction +endfunc -function! Test_matchadd_and_syn_conceal() +func Test_matchadd_and_syn_conceal() new let cnt='Inductive bool : Type := | true : bool | false : bool.' let expect = 'Inductive - : Type := | true : - | false : -.' @@ -276,4 +276,4 @@ function! Test_matchadd_and_syn_conceal() call assert_notequal(screenattr(1, 10) , screenattr(1, 11)) call assert_notequal(screenattr(1, 11) , screenattr(1, 12)) call assert_equal(screenattr(1, 11) , screenattr(1, 32)) -endfunction +endfunc |