diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-07 07:06:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-07 07:06:38 +0800 |
| commit | bcef006da6333e9e9a91ed862f8c1d7a0022f094 (patch) | |
| tree | 822c3d52826b1a435b5c417b1a09a6d151546ade /src/nvim/testdir/test_vimscript.vim | |
| parent | 09325845b9b6c9c3a61feef189c5b80094f51a5b (diff) | |
| download | rneovim-bcef006da6333e9e9a91ed862f8c1d7a0022f094.tar.gz rneovim-bcef006da6333e9e9a91ed862f8c1d7a0022f094.tar.bz2 rneovim-bcef006da6333e9e9a91ed862f8c1d7a0022f094.zip | |
vim-patch:9.0.0678: using exclamation marks on :function (#20518)
Problem: Using exclamation marks on :function.
Solution: Use :func and :endfunc as usual.
https://github.com/vim/vim/commit/97f0eb169bf805c372b13c6bc9a03da2e75e3354
Add a missing change from patch 8.1.1875.
Diffstat (limited to 'src/nvim/testdir/test_vimscript.vim')
| -rw-r--r-- | src/nvim/testdir/test_vimscript.vim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim index 97e879c9ef..3487a028ca 100644 --- a/src/nvim/testdir/test_vimscript.vim +++ b/src/nvim/testdir/test_vimscript.vim @@ -756,23 +756,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 @@ -1370,10 +1370,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 |