Andre Walker
b468a4374f
Actually, Filename() here is not necessary
2016-09-13 16:58:28 +02:00
Andre Walker
2eeff06b3e
Suggest a better default for Perl package names
...
The previous snippet for Perl 'package' was apparently copy-pasted from
html.snippets (see 'head' and 'title' snippets). It didn't really make
sense, and for me it actually always returned an empty string.
This one looks for the path name of the file and removes everything up
to the lib/ folder. It then replaces '/' with '::'. I think it's a
pretty sensible default.
Finally, I also added "use strict" and "use warnings" to the package
definition.
2016-09-13 15:30:13 +02:00
Bernhard Graf
89f8fa6ba9
Bug fix: replace space indention by tab
2014-09-07 14:44:32 +02:00
goonnow
fdcacb33af
Remove useless placeholder
2014-08-28 16:19:41 +07:00
goonnow
6de139f35d
Update snippets.
2014-08-27 14:47:11 +07:00
Adnan Zafar
7f9c4f5807
Modify snippets to support zero tabstop
2013-09-05 14:53:52 -04:00
Marc Weber
80697bea6f
replace Filename by vim_snippets#Filename and document it
...
It doesn't make sense that all snippet engines have to
keep this function somewhere
2013-07-08 23:47:14 +02:00
Marc Weber
344ac6ea2c
new policies for if, eif, el
...
What about wh(ile)?
drop some placeholder comments which don't add (enough) value to keep
for patterns used very often.
2013-06-23 02:30:26 +02:00
Michael Thessel
4eb88d7993
Removed comment blocks from placeholders
2013-06-20 23:57:07 +02:00
William Travis Holton
b5bb673ee3
corrected spelling mistake
2012-07-26 21:44:58 +12:00
William Travis Holton
8e6b144f68
create an inline documented subroutine
2012-07-26 21:41:52 +12:00
William Travis Holton
4987a54300
took some whitespace out removed some redundant snippets
2012-07-26 21:35:03 +12:00
Travis Holton
c805b4f241
put in a goto point to jump to
2012-07-26 16:08:11 +12:00
Travis Holton
0d5ecadc57
fix quote on moose snippet
2012-07-26 16:07:33 +12:00
Travis Holton
2f701a9058
put extends in a BEGIN block
2012-07-26 09:57:26 +12:00
William Travis Holton
a42eb6a320
substitute regular package name
2012-07-26 09:55:41 +12:00
William Travis Holton
2abf84e6b9
experimenting with file name in package snippet
2012-07-26 09:55:41 +12:00
William Travis Holton
af48514455
changing package template and a few others
2012-07-26 09:55:41 +12:00
William Travis Holton
313ec98d83
make package definitions more generic
2012-07-26 09:55:41 +12:00
William Travis Holton
b272f87f1f
experimenting with some new perl features
2012-07-26 09:55:41 +12:00
William Travis Holton
79b4377ee3
experimenting with a couple new package constructs
2012-07-26 09:55:41 +12:00
William Travis Holton
c59a7f2c49
use parent instead of base
2012-07-26 09:55:41 +12:00
Steven Humphrey
af0c4dac62
Changed hash bang line to env perl like other snippets.
...
This allows the use of non-system perls.
2012-03-19 19:04:44 +00:00
William Travis Holton
9a18690ef3
removing ; from end of package subroutine calls
2012-03-11 11:24:03 +13:00
William Travis Holton
fafa4a7147
Cleanup - Moose parent class name should be enclosed in quotes
2012-03-11 09:37:26 +13:00
William Travis Holton
a8e879d9d8
Added a snippet for Test::Routine style tests
...
Also put in a more descriptive comment for Test::Class related snippet
2012-03-11 09:35:34 +13:00
William Travis Holton
827755ad89
subroutine pod snippet with "=cut"
...
For when someone wants to put the pod next to the subroutine definition
2012-03-11 09:27:16 +13:00
William Travis Holton
6c886e2864
make sure $@ is localized for evals
...
as perl "Modern Perl"
2012-03-11 09:26:30 +13:00
Marc Weber
81d4f96e30
snippets I use and fut snippet issue 46
2011-11-24 13:38:52 +01:00
William Travis Holton
a527891868
Some custom perl snippets
...
These were previously in separate files. I appended them to the main
perl.snippets file.
2011-09-09 18:57:55 +02:00
Marc Weber
94aebfaadd
Move all snippet files into a snippets directory so that you can install it
...
using VAM. The reason is that snipmate automatically looks for snippets
found in &rtp/snippets
2011-06-21 09:02:13 +02:00