Some folding features, mostly suggested by Herbert Breunung. Tested vs Hg default on MinGW/gcc 4.4.0.
(a) Folding of array blocks (square brackets)
- Done like folding for braces, which no one has complained about so far
(b) Adjacent package statements are not folded
(c) Nested folding for Pod headings (=head1 thru =head4)
- Pod headings in the data section are also folded
(d) Terminates package folding at __DATA__, __END__, ^D and ^Z
- Previously, only __END__ tested for
LexPerl.cxx and test cases
Updated LexPerl.cxx
Tweaked POD heading nesting to make it more robust -- bumped the heading bits up to leave some room for hypothetical cases where PODs are located in some sort of folded block(s).
Works well. Committed.