diff options
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_eval.in | 18 | ||||
-rw-r--r-- | src/testdir/test_eval.ok | bin | 10736 -> 10827 bytes |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/testdir/test_eval.in b/src/testdir/test_eval.in index cb942011be..4919694bea 100644 --- a/src/testdir/test_eval.in +++ b/src/testdir/test_eval.in @@ -144,7 +144,7 @@ endfun :delcommand AR :call garbagecollect(1) :" -:" function name includes a colon +:" function name not starting with capital :try :func! g:test() :echo "test" @@ -153,6 +153,15 @@ endfun :$put =v:exception :endtry :" +:" function name includes a colon +:try +:func! b:test() +:echo "test" +:endfunc +:catch +:$put =v:exception +:endtry +:" :" function name folowed by # :try :func! test2() "# @@ -162,6 +171,13 @@ endfun :$put =v:exception :endtry :" +:" function name starting with/without "g:", buffer-local funcref. +:function! g:Foo() +: $put ='called Foo()' +:endfunction +:let b:my_func = function('Foo') +:call b:my_func() +:" :/^start:/+1,$wq! test.out :" vim: et ts=4 isk-=\: fmr=???,??? :call getchar() diff --git a/src/testdir/test_eval.ok b/src/testdir/test_eval.ok Binary files differindex a0d0e458ce..57383be748 100644 --- a/src/testdir/test_eval.ok +++ b/src/testdir/test_eval.ok |