<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Oct 11, 2005, at 10:52 PM, Michael Sheets wrote:</DIV><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">The folding start/end is greedy, it will allow folding to begin inside a comment. Should use ^ in the start/end perhaps. Example:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">-- bisection method for solving non-linear equations</FONT></P> </BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px">[...]<BR></P><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">(The for in the comment being the issue)</FONT></P></BLOCKQUOTE></DIV><BR><DIV>I've fixed that locally with:</DIV><DIV>    foldingStartMarker = '^\s*\b(function|if|for)\b|{[ \t]*$|\[\[';</DIV><DIV>    foldingStopMarker = '\bend\b|^\s*}|\]\]';</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The above still causes an unpaired { at the end of the line in a comment to start folding, but that seems rather unlikely. I'm going to play with this a bit, and finish adding the library snippets, and then I'll be checking this bundle into SVN (probably tonight).</DIV></BODY></HTML>