From: Shawn M Moore Date: Sun, 10 May 2009 19:04:31 +0000 (-0400) Subject: prole snippet X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=413489996b3da5da6999b39a599e81776f679a0a;p=gitmo%2Fmoose-dev-utils.git prole snippet --- diff --git a/vim/moose_snippets.vim b/vim/moose_snippets.vim index 343473a..d69c740 100644 --- a/vim/moose_snippets.vim +++ b/vim/moose_snippets.vim @@ -95,6 +95,23 @@ call Snippet('after', [ \ "<{}>", \"};"]) +" MooseX support +call Snippet('prole', [ + \"package <{RoleName}>;", + \"use MooseX::Role::Parameterized;", + \"", + \"<{}>", + \"", + \"role {", + \"my $p = shift;", + \"", + \"<{}>", + \"};", + \"", + \"no MooseX::Role::Parameterized;", + \"", + \"1;"]) + "for file in globpath(&rtp, 'snippets/*') "call SnippetFile(file) "endfor