some sections begin with =head1, some with =head2, some have both =head1 and =head2; but all end with =cut.
so there is no way to come up with folding patterns that will intelligently fold POD sections? can't have everything, i guess.
thanks, michael.
On Jul 6, 2006, at 7:55 PM, Allan Odgaard wrote:
On 7/7/2006, at 0:21, Michael Reece wrote:
i tried to get clever and use perlish zero-width positive look- ahead regex -- something like (^=head\d(.|\n)*(?==cut)) -- but textmate doesn't appear to support such patterns.
The pattern is only applied to a single line, so that’s why it won’t see =cut. However, both =head1 and =head2 would have seen =cut, if TM had given it the entire document.
As I see it, the only way is to decide which head level you want folding start markers, and ask explicitly for that, i.e. ^=head1$.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
--- michael reece :: software engineer :: mreece@vinq.com