From ee1972556c5bcdea2bb98628c0945e84168b8a41 Mon Sep 17 00:00:00 2001 From: William Travis Holton Date: Mon, 29 Aug 2011 08:52:36 +0200 Subject: [PATCH] as per "Contributing Notes" from honza..removing folding markers --- snippets/perl-basic.snippets | 12 ++++++------ snippets/perl-moosesnippets.snippets | 8 ++++---- snippets/perl-test.snippets | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/snippets/perl-basic.snippets b/snippets/perl-basic.snippets index d561dee..f5ec1cf 100644 --- a/snippets/perl-basic.snippets +++ b/snippets/perl-basic.snippets @@ -30,9 +30,9 @@ snippet asub # Begin block snippet begin - BEGIN { #{{{ + BEGIN { ${1:# begin body} - } #}}} + } # call package function with some parameter snippet pkgmv @@ -62,16 +62,16 @@ snippet qr/ #given snippet given - given ($${1:var}) { #{{{ + given ($${1:var}) { ${2:# cases} ${3:# default} - } #}}} + } # switch-like case snippet when - when (${1:case}) { #{{{ + when (${1:case}) { ${2:# body} - } #}}} + } # hash slice snippet hslice diff --git a/snippets/perl-moosesnippets.snippets b/snippets/perl-moosesnippets.snippets index efad9cc..a731ec5 100644 --- a/snippets/perl-moosesnippets.snippets +++ b/snippets/perl-moosesnippets.snippets @@ -29,20 +29,20 @@ snippet moosecl # has snippet has - has ${1:attribute} => ( #{{{ + has ${1:attribute} => ( is => '${2:ro|rw}', isa => '${3:Str|Int|HashRef|ArrayRef|etc}', default => ${4:defaultvalue} ,${5:# other attributes} - ); #}}} + ); # override snippet override - override ${1:attribute} => sub { #{{{ + override ${1:attribute} => sub { ${2:# my $self = shift;}; ${3:# my ($self,$args) = @_;}; - }; #}}} + }; diff --git a/snippets/perl-test.snippets b/snippets/perl-test.snippets index da9f829..7e25517 100644 --- a/snippets/perl-test.snippets +++ b/snippets/perl-test.snippets @@ -21,16 +21,16 @@ snippet trunner #testclass snippet tsub - sub t${1:number}_${2:test_case} :Test(${3:num_of_tests}) { #{{{ + sub t${1:number}_${2:test_case} :Test(${3:num_of_tests}) { my $self = shift; ${4:# body} - } #}}} + } #prep test method snippet tprep - sub prep${1:number}_${2:test_case} :Test(startup) { #{{{ + sub prep${1:number}_${2:test_case} :Test(startup) { my $self = shift; ${4:# body} - } #}}} + }