On Nov 24, 2007, at 10:26 AM, Andy Armstrong wrote:
For that use it doesn't have to integrated into the regex engine - it'd be enough to have a scope based condition that a folding pattern could depend upon:
foldingStartMarker = '(^=(?!cut)|/*|({|[|()\s*$)'; foldingStartIfScope = '! markup.directive.comment.block.documentation.perl'; foldingStopMarker = '(^=cut|*/|^\s*(}|]|)))';
Unrelated: I wonder why the Perl language definition supports C style /* */ comments - which aren't legal in Perl?
Early on there was a lot of copy and pasting between the languages, and then people added the features they wanted to them. Since they aren't used as comments they also never caused problems so nobody removed them. ;)