Home
last modified time | relevance | path

Searched refs:funcref (Results 1 – 25 of 31) sorted by relevance

12

/vim-8.2.3635/src/testdir/
H A Dtest_const.vim10 const F = funcref('s:noop')
42 call assert_fails('let F = funcref("s:noop")', 'E741:')
77 const l:F = funcref('s:noop')
94 call assert_fails('let l:F = funcref("s:noop")', 'E741:')
145 let F = funcref('s:noop')
159 call assert_fails('const F = funcref("s:noop")', 'E995:')
174 const F2 = funcref('s:noop')
188 call assert_fails('const F2 = funcref("s:noop")', 'E995:')
H A Dtest_lua.vim674 lua i1 = vim.funcref"I"
677 lua msg = vim.funcref"tr"(msg, "|", " ")
678 call assert_equal("funcref test OK", luaeval('msg'))
681 call assert_fails('lua f1 = vim.funcref("")',
683 call assert_fails('lua f1 = vim.funcref("10")',
686 call assert_fails('lua f1 = vim.funcref(fname)',
688 call assert_fails('lua vim.funcref("abc")()',
691 " dict funcref
723 call assert_equal('funcref', luaeval('vim.type(vim.funcref("Test_type"))'))
761 vim.funcref('Vim_func_call_lua_callback')(
[all …]
H A Dtest_expr.vim461 " funcref
497 let OneByRef = funcref('One')
503 let OneByRef = 'One'->funcref()
505 call assert_fails('echo funcref("{")', 'E475:')
506 let OneByRef = funcref("One", repeat(["foo"], 20))
507 call assert_fails('let OneByRef = funcref("One", repeat(["foo"], 21))', 'E118:')
509 call assert_fails('echo test_null_function()->funcref()', 'E475: Invalid argument: NULL')
H A Dtest_filter_map.vim32 " list with funcref
66 " dict with funcref
H A Dtest_partial.vim110 fun InnerCall(funcref) argument
111 return a:funcref
H A Dshared.vim125 " stringified expression to evaluate, or a funcref without arguments.
H A Dtest_vimscript.vim6445 " Test 87 using (expr) ? funcref : funcref {{{1
6447 " Vim needs to correctly parse the funcref and even when it does
6448 " not execute the funcref, it needs to consume the trailing ()
7200 call assert_equal(0, test_refcount(funcref('Func')))
7204 call assert_equal(0, test_refcount(funcref('Func')))
7205 call assert_equal(0, test_refcount(funcref('Func', [1])))
7212 let X = funcref('Func')
7215 let X = funcref('Func', [1])
7417 " function name starting with/without "g:", buffer-local funcref.
H A Dtest_vim9_disassemble.vim1050 var Party2: func = funcref("UserFunc")
1063 'var Party2: func = funcref("UserFunc")\_s*' ..
1065 '\d BCALL funcref(argc 1)\_s*' ..
H A Dtest_syntax.vim830 " Skip argument using funcref.
H A Dtest_functions.vim2445 " funcref()
2446 call assert_equal([0, 1], funcref('TwoArgs', range(2))())
H A Dtest_normal.vim423 " use a funcref for 'opfunc'
428 set opfunc=funcref('Test_opfunc2',\ [4,\ 3])
H A Dtest_vim9_assign.vim102 var Party2: func = funcref('g:Test_syntax')
H A Dtest_vim9_expr.vim3211 # funcref call, using list index
/vim-8.2.3635/runtime/doc/
H A Dif_lua.txt14 6. Funcref userdata |lua-funcref|
150 vim.funcref({name}) Returns a Funcref to function {name} (see
171 "dict", "funcref", "buffer", or "window" if
172 {arg} is a list, dictionary, funcref, buffer,
368 6. Funcref userdata *lua-funcref*
370 Funcref userdata represent funcref variables in Vim. Funcrefs that were
373 below.) A funcref "f" has the following properties:
386 :lua i1 = vim.funcref('I')
394 :lua d = vim.eval('mydict'); d.len = vim.funcref('Mylen')
506 list, dict, blob, and funcref userdata are converted to their Vim respective
H A Dif_mzsch.txt14 6. Using Function references |mzscheme-funcref|
175 |mzscheme-funcref|)
258 6. Using Function references *mzscheme-funcref*
H A Dvim9.txt251 script "s:funcref" could be used, because it could not be referred to with
252 "funcref". In Vim9 script it can, therefore "s:Funcref" must be used to avoid
H A Deval.txt183 A Funcref variable is obtained with the |function()| function, the |funcref()|
218 function() or funcref(). When calling the function the Dictionary and/or
2652 funcref({name} [, {arglist}] [, {dict}])
2659 get({func}, {what}) any get property of funcref/partial {func}
5180 *funcref()*
5181 funcref({name} [, {arglist}] [, {dict}])
5191 GetFuncname()->funcref([arg])
5206 also when it was redefined later. Use |funcref()| to keep the
9647 {skip} can be a string, a lambda, a funcref or a partial.
10130 a function or a funcref or a lambda. Refer to
[all …]
H A Dtags6742 funcref() eval.txt /*funcref()*
7808 lua-funcref if_lua.txt /*lua-funcref*
8007 mzscheme-funcref if_mzsch.txt /*mzscheme-funcref*
/vim-8.2.3635/src/
H A Dvim9.h439 funcref_T funcref; member
H A Dvim9execute.c3172 + iptr->isn_arg.funcref.fr_func; in exec_instructions()
5456 funcref_T *funcref = &iptr->isn_arg.funcref; in list_instructions() local
5458 + funcref->fr_func; in list_instructions()
H A Dif_lua.c1321 luaV_type_tostring(funcref, LUAVIM_FUNCREF) in luaV_type_tostring() argument
H A Dvim9compile.c1678 isn->isn_arg.funcref.fr_func = ufunc->uf_dfunc_idx; in generate_FUNCREF()
10444 + isn->isn_arg.funcref.fr_func; in delete_instr()
/vim-8.2.3635/src/po/
H A Dda.po546 msgstr "E695: Kan ikke indeksere en funcref"
578 msgstr "E703: Bruger en funcref som et nummer"
593 msgstr "E891: Bruger en funcref som et fyldende kommatal"
614 msgstr "E729: bruger funcref som en streng"
678 msgstr "E694: Ugyldig handling for funcref'er"
/vim-8.2.3635/runtime/autoload/
H A Dnetrw.vim5338 " call Decho("g:Netrw_corehandler is a funcref",'~'.expand("<slnum>"))
11537 …trw#ErrorMsg(s:WARNING,"ignoring usermap <".string(umap[0])."> -- not a [string,funcref] entry",99)
12688 " * calls a user-supplied funcref(islocal,curdir)
12701 " if result from user's funcref is a string...
12702 " call Decho("result string from user funcref<".result.">",'~'.expand("<slnum>"))
12712 " if result from user's funcref is a List...
12713 " call Decho("result List from user funcref<".string(result).">",'~'.expand("<slnum>"))
/vim-8.2.3635/runtime/syntax/
H A Dvim.vim86 …iff_filler echoraw executable expand filewritable float2nr foldclosedend funcref getbufvar getchar…

12