Re: [RFC/PATCH] diff: funcname and word patterns for perl
- From
Jeff King <peff@peff.net>
- Date
- Dec 28, 2010, 03:52 UTC
- Message-ID
- <20101228035210.GA11735@sigill.intra.peff.net>
- In-Reply-To
- <7vmxnrxhgm.fsf@alter.siamese.dyndns.org>
On Mon, Dec 27, 2010 at 09:18:17AM -0800, Junio C Hamano wrote:
> Jonathan's pattern set allows them to be indented, and followed by some > garbage at the end., which we might want to tighten. How many people > start 'package' and the outermost 'sub' indented?
FWIW, I sometimes do:
{
my $static;
sub foo {
... use $static ...
}
}so perhaps allowing whitespace in front of the keyword is worthwhile there. I have never indented "package", though.
-Peff