From: Shawn M Moore Date: Mon, 4 May 2009 17:49:34 +0000 (-0400) Subject: Tabstop on type constraints X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2Fmoose-dev-utils.git;a=commitdiff_plain;h=e5010cb85ac489f970e42fca3ecece01be55aa21;hp=9a5242eb014757b02b39ac072d46c02ad585b4c0 Tabstop on type constraints --- diff --git a/vim/moose_snippets.vim b/vim/moose_snippets.vim index f08a714..f9c3411 100644 --- a/vim/moose_snippets.vim +++ b/vim/moose_snippets.vim @@ -15,7 +15,7 @@ function! RemoveEmptySuperClass() endfun exec "Snippet class package ".st."ClassName".et.";use Moose;extends '".st."SuperClass:RemoveEmptySuperClass()".et."';".st.et."__PACKAGE__->meta->make_immutable;no Moose;1;" -exec "Snippet has has ".st."attr".et." => (is => 'rw',isa => 'Str',".st.et.");" -exec "Snippet hasl has ".st."attr".et." => (is => 'rw',isa => 'Str',lazy_build => 1,);sub _build_".st."attr".et." {my $self = shift;".st.et."}" +exec "Snippet has has ".st."attr".et." => (is => 'rw',isa => '".st."Str".et."',".st.et.");" +exec "Snippet hasl has ".st."attr".et." => (is => 'rw',isa => '".st."Str".et."',lazy_build => 1,);sub _build_".st."attr".et." {my $self = shift;".st.et."}" exec "Snippet sub sub ".st."name".et." {my $self = shift;".st.et."}"