return @z
endfun
+function RemoveEmptyLine()
+ s/^\s*<{}>\s*\n//e
+ return @z
+endfun
+
function Snippet(abbr, str)
if type(a:str) == type([])
return Snippet(a:abbr, join(a:str, "\n"))
\"has <{attr}> => (",
\ "is => '<{rw}>',",
\ "isa => '<{Str}>',",
- \ "<{}>",
+ \ "<{options:RemoveEmptyLine()}>",
\");"])
call Snippet('hasl', [
\"has <{attr}> => (",
\ "is => '<{rw}>',",
\ "isa => '<{Str}>',",
\ "lazy_build => 1,",
- \ "<{}>",
+ \ "<{options:RemoveEmptyLine()}>",
\");",
\"",
\"sub _build_<{attr}> {",