mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 04:23:51 -05:00
@@ -2506,6 +2506,8 @@ endif
|
|||||||
" Function called for testing all functions defined here. These are
|
" Function called for testing all functions defined here. These are
|
||||||
" script-local, thus need to be executed here.
|
" script-local, thus need to be executed here.
|
||||||
" Returns a string with error messages (hopefully empty).
|
" Returns a string with error messages (hopefully empty).
|
||||||
|
" Check if function exists first. See https://github.com/vim/vim/issues/9890
|
||||||
|
if !exists("*TestFiletypeFuncs")
|
||||||
func! TestFiletypeFuncs(testlist)
|
func! TestFiletypeFuncs(testlist)
|
||||||
let output = ''
|
let output = ''
|
||||||
for f in a:testlist
|
for f in a:testlist
|
||||||
@@ -2517,6 +2519,7 @@ func! TestFiletypeFuncs(testlist)
|
|||||||
endfor
|
endfor
|
||||||
return output
|
return output
|
||||||
endfunc
|
endfunc
|
||||||
|
endif
|
||||||
|
|
||||||
" Restore 'cpoptions'
|
" Restore 'cpoptions'
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
|||||||
Reference in New Issue
Block a user