[perl lexer]

7 views
Skip to first unread message

Herbert Breunung

unread,
Nov 14, 2009, 2:21:46 PM11/14/09
to scintilla-interest
hallo kein-hong man and others,
i found a section in the wxperl source code which dives the folding
completely nuts:


package Wx::DropTarget;
package Wx::DropFilesEvent; @ISA = qw(Wx::Event);
package Wx::DataObject;
package Wx::DataObjectSimple; @ISA = qw(Wx::DataObject);
package Wx::PlDataObjectSimple; @ISA = qw(Wx::DataObjectSimple);
package Wx::DataObjectComposite;@ISA = qw(Wx::DataObject);
package Wx::FileDataObject; @ISA = qw(Wx::DataObjectSimple);
package Wx::TextDataObject; @ISA = qw(Wx::DataObjectSimple);
package Wx::BitmapDataObject; @ISA = qw(Wx::DataObjectSimple);
package Wx::Droptarget;
package Wx::PlDropTarget; @ISA = qw(Wx::DropTarget);
package Wx::TextDropTarget; @ISA = qw(Wx::DropTarget);
package Wx::FileDropTarget; @ISA = qw(Wx::DropTarget);
package Wx::URLDataObject; @ISA = qw(Wx::DataObject);


he can't stand it that packages are only 1 line long
hope it helpes.

KHMan

unread,
Nov 14, 2009, 9:30:32 PM11/14/09
to scintilla...@googlegroups.com

:-) Ok, will take a look.

The "package Wx::DropTarget;" is an empty package, right?

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Herbert Breunung

unread,
Dec 7, 2009, 4:55:44 PM12/7/09
to scintilla-interest
thank you a lot, i even found another issue. when folding POD you
could tread head1 as node mor above then head2

cheers
herbert

KHMan

unread,
Dec 7, 2009, 6:29:36 PM12/7/09
to scintilla...@googlegroups.com
Herbert Breunung wrote:
> thank you a lot, i even found another issue. when folding POD you
> could tread head1 as node mor above then head2

Currently =head1, =head2, =head3 fold separately, at the same fold
level. Do you want them in a hierarchy?

KHMan

unread,
Dec 8, 2009, 8:23:51 PM12/8/09
to scintilla...@googlegroups.com
Herbert Breunung wrote:
> thank you a lot, i even found another issue. when folding POD you
> could tread head1 as node mor above then head2

Anyway, the two are on my TODO list now, though I'm preoccupied
with other things at the moment and cannot immediately see to them.

Best if you give an opinion as to what the desired behaviour is. I
never use folding myself and so if there is a desired behaviour,
then I can verify it in the Perl documentation more quickly and be
assured that it meets your users' expectations.

Herbert Breunung

unread,
Dec 14, 2009, 1:37:39 PM12/14/09
to scintilla-interest
thanks,
as an author and user of an editor find folding important.
its good for navigation and folding features of kephra make it easy to
fold specific levels.
i use hierarchical heads in the POD and when i fould on the topl level
and still all POD heads
are folded, its much slower to find what you looking for.

and you don't have to hurry becauseWxPerl contains a scintilla version
that is over 2 years old.

thanks a lot

KHMan

unread,
Dec 14, 2009, 8:13:40 PM12/14/09
to scintilla...@googlegroups.com
Herbert Breunung wrote:
> thanks,
> as an author and user of an editor find folding important.
> its good for navigation and folding features of kephra make it easy to
> fold specific levels.
> i use hierarchical heads in the POD and when i fould on the topl level
> and still all POD heads
> are folded, its much slower to find what you looking for.
> [snip]

So, =head1/2/3 in PODs to be hierarchical (hmm, will need to study
other lexers on how to reliably fold a mixture of that), then
multiple 'package' all at one base level... Any weird usage of
'package' that might break this?
Reply all
Reply to author
Forward
0 new messages