Re: [RFC/PATCH] diff: funcname and word patterns for perl

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Monday, December 27, 2010 - 3:44 pm

On Mon, 27 Dec 2010, Junio C Hamano wrote:

All right.


Note that in future Perl 5.14 there would be 'package NAME {' form,
so perhaps it would be better to future-proof and use

  +	 "^package .*[;{]\n"


Using "sub foo {" is just a recommended programming convention (like e.g.
GNU convention or K&R convention for C code).  I think it would be better
to relax it a bit, either

  +	 "^sub "

or

  +	 "^sub .*( \\{)?\n"


We won't list possible block here?


-- 
Jakub Narebski
Poland
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH v7 4/9] gitweb: Prepare for splitting gitweb, Jakub Narebski, (Wed Dec 22, 4:56 pm)
[RFC PATCH v7 9/9] gitweb: Add optional output caching, Jakub Narebski, (Wed Dec 22, 4:58 pm)
Re: [RFC PATCH v7 4/9] gitweb: Prepare for splitting gitweb, Jonathan Nieder, (Fri Dec 24, 2:29 am)
[RFC/PATCH] diff: funcname and word patterns for perl, Jonathan Nieder, (Sun Dec 26, 2:07 am)
Re: [RFC/PATCH] diff: funcname and word patterns for perl, Jonathan Nieder, (Sun Dec 26, 3:54 am)
Re: [RFC/PATCH] diff: funcname and word patterns for perl, Jonathan Nieder, (Sun Dec 26, 4:22 am)
Re: [RFC/PATCH] diff: funcname and word patterns for perl, Jakub Narebski, (Sun Dec 26, 4:14 pm)
Re: [RFC/PATCH] diff: funcname and word patterns for perl, Junio C Hamano, (Mon Dec 27, 10:18 am)
Re: [RFC/PATCH] diff: funcname and word patterns for perl, Jakub Narebski, (Mon Dec 27, 3:44 pm)