Remove LazyBuilder, SnippetsEmu already handles this fine
Shawn M Moore [Tue, 5 May 2009 04:41:43 +0000 (00:41 -0400)]
vim/moose_snippets.vim

index 750206e..a8c2f69 100644 (file)
@@ -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;",
             \    "<{}>",
             \"}"])