From 4ee658007c31715bd8970bae658f121101dd2b5f Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 1 Oct 2013 10:07:11 +0900 Subject: [PATCH] - Updated vital. --- autoload/vital/{_821d01d.vim => _897c317.vim} | 7 +++++-- autoload/vital/{_821d01d => _897c317}/Prelude.vim | 0 autoload/vital/neosnippet.vital | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) rename autoload/vital/{_821d01d.vim => _897c317.vim} (95%) rename autoload/vital/{_821d01d => _897c317}/Prelude.vim (100%) diff --git a/autoload/vital/_821d01d.vim b/autoload/vital/_897c317.vim similarity index 95% rename from autoload/vital/_821d01d.vim rename to autoload/vital/_897c317.vim index c4edbb0..2ed8aee 100644 --- a/autoload/vital/_821d01d.vim +++ b/autoload/vital/_897c317.vim @@ -146,9 +146,12 @@ function! s:_build_module(sid) return copy(s:loaded[a:sid]) endif let prefix = '' . a:sid . '_' - let funcs = s:_redir("function /^\" . a:sid . '_') + let funcs = s:_redir('function') + let filter_pat = '^\s*function ' . prefix let map_pat = prefix . '\zs\w\+' - let functions = map(split(funcs, "\n"), 'matchstr(v:val, map_pat)') + let functions = map(filter(split(funcs, "\n"), + \ 'stridx(v:val, prefix) > 0 && v:val =~# filter_pat'), + \ 'matchstr(v:val, map_pat)') let module = {} for func in functions diff --git a/autoload/vital/_821d01d/Prelude.vim b/autoload/vital/_897c317/Prelude.vim similarity index 100% rename from autoload/vital/_821d01d/Prelude.vim rename to autoload/vital/_897c317/Prelude.vim diff --git a/autoload/vital/neosnippet.vital b/autoload/vital/neosnippet.vital index 9b100e1..19792bf 100644 --- a/autoload/vital/neosnippet.vital +++ b/autoload/vital/neosnippet.vital @@ -1,3 +1,3 @@ -821d01d +897c317 Prelude