diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-06 19:49:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-06 19:49:13 +0100 |
commit | 97f0eb169bf805c372b13c6bc9a03da2e75e3354 (patch) | |
tree | 878eecfe5ffa3da06ad1689d5bcf8c8c37cbb36e /src/testdir/test_vimscript.vim | |
parent | 06618f94f1c9ed73a84ad5d6a8e1933b0b8da846 (diff) |
patch 9.0.0678: using exclamation marks on :functionv9.0.0678
Problem: Using exclamation marks on :function.
Solution: Use :func and :endfunc as usual.
Diffstat (limited to 'src/testdir/test_vimscript.vim')
-rw-r--r-- | src/testdir/test_vimscript.vim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim index 7698ce836d..6292f6d0d8 100644 --- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -719,23 +719,23 @@ endfunc XpathINIT -function! NULL() +func NULL() Xpath 'a' return 0 -endfunction +endfunc -function! ZERO() +func ZERO() Xpath 'b' return 0 -endfunction +endfunc -function! F0() +func! F0() Xpath 'c' -endfunction +endfunc -function! F1(arg) +func! F1(arg) Xpath 'e' -endfunction +endfunc let V0 = 1 @@ -6822,10 +6822,10 @@ endfunc " Test 95: lines of :append, :change, :insert {{{1 "------------------------------------------------------------------------------- -function! DefineFunction(name, body) +func DefineFunction(name, body) let func = join(['function! ' . a:name . '()'] + a:body + ['endfunction'], "\n") exec func -endfunction +endfunc func Test_script_lines() " :append |