[Padre-dev] [Padre-commit] rev 1040 - trunk/lib/Padre/Document
Jerome Quelin
jquelin at gmail.com
Mon Nov 17 10:22:34 PST 2008
On 08/11/17 10:10 -0800, svn at perlide.org wrote:
> Author: jquelin
> See also: http://padre.perlide.org/changeset/1040
> Date: 2008-11-17 10:10:36 -0800 (Mon, 17 Nov 2008)
> New Revision: 1040
>
> Modified:
> trunk/lib/Padre/Document/Perl6.pm
> Log:
> un/comment tackled for perl6
as you can see, perl, perl6, pasm & pir use the same comments type: a
hash sign at the start of the line. and i copy'n'pasted the same
functions over & over again.
this is bad - but i didn't want to make the #-comments be the base
way of comment-ing. so, what can we do:
1- change inheritance of perl6, pasm & pir to be document::perl
2- use glob aliases in perl6, pasm & pir to redefine methods such as:
*{comment_lines} = \&Padre::Document::Perl::comment_lines;
3- define helper methods that add / remove a common prefix for a bunch
of lines
4- nothing, let's keep it like this
==> wdyt?
jérôme
--
jquelin at gmail.com
More information about the Padre-dev
mailing list