summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_eval.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_eval.in')
-rw-r--r--src/testdir/test_eval.in18
1 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()