From: Shawn M Moore Date: Tue, 5 May 2009 04:41:43 +0000 (-0400) Subject: Remove LazyBuilder, SnippetsEmu already handles this fine X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a75bdf8dde98995f9305d56ec7f4db5f8fbfe2bd;p=gitmo%2Fmoose-dev-utils.git Remove LazyBuilder, SnippetsEmu already handles this fine --- diff --git a/vim/moose_snippets.vim b/vim/moose_snippets.vim index 750206e..a8c2f69 100644 --- a/vim/moose_snippets.vim +++ b/vim/moose_snippets.vim @@ -10,12 +10,6 @@ function RemoveEmptySuperClass() return @z endfun -function LazyBuilder() - let pattern = "has\\s\\+\\zs.\\{-}\\ze\\s\\+=>" - let lnum = search(pattern, 'bnW') - return matchstr(getline(lnum), pattern) -endfunction - function Snippet(abbr, str) if type(a:str) == type([]) return Snippet(a:abbr, join(a:str, "\n")) @@ -61,7 +55,7 @@ call Snippet('hasl', [ \ "<{}>", \");", \"", - \"sub _build_<{attr:LazyBuilder()}> {", + \"sub _build_<{attr}> {", \ "my $self = shift;", \ "<{}>", \"}"])