Menu

#708 Perl lexer folding enhancements

Completed
closed
Scintilla (391)
5
2010-07-30
2010-07-17
No

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

Discussion

  • Kein-Hong Man

    Kein-Hong Man - 2010-07-17

    LexPerl.cxx and test cases

     
  • Kein-Hong Man

    Kein-Hong Man - 2010-07-17

    Updated LexPerl.cxx

     
  • Kein-Hong Man

    Kein-Hong Man - 2010-07-17

    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).

     
  • Neil Hodgson

    Neil Hodgson - 2010-07-18
    • assigned_to: nobody --> nyamatongwe
    • milestone: --> Completed
     
  • Neil Hodgson

    Neil Hodgson - 2010-07-18

    Works well. Committed.

     
  • Neil Hodgson

    Neil Hodgson - 2010-07-30
    • status: open --> closed
     

Log in to post a comment.