At 7:33 am -0400 28/9/06, Eric Landmann wrote: >It would be handy to have code folding points at all of the major structures >of the language. Is what you suggest flexible enough to allow for these?
I believe not, because CLMs do not appear to support nested 'functions'. I've tried writing a regex to recognise more than one structure type as a fold point (for Lasso, so here's another vote for a native language module) and only the outermost 'function' gets a fold point and a place in the function menu. I don't see that this should be too hard to alter though. I assume the whole file is swept with the regex pattern, so any nested function has already been 'eaten' by the outermost function, and the regex library starts looking again from the end of that outer function. Would impose too much of a performance hit for BBEdit to scan for more functions within each the functions it finds on the first scan? It can't be impossible, because other languages in BBEdit (e.g. XHTML) have nested fold points, and the Lasso module for the Eclipse IDE supports nested fold points. (FWIW I've sent a feature request to BB for this.) James Harvard -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
