At 11.32 +0200 2006-09-14, Johan Solve wrote:
>I'd like to see some examples of CLMs that support code folding.
>I assume the key for recognizing code folding points is to make the CLM 
>recognize function definitions, and have BBLMScansFunctions set to true?

As an exercise I tried to modify John Gruber's Apache config CLM to recognize 
virtual hosts as functions and code folding points.

I removed VirtualHost as keyword, changed BBLMScansFunctions to true and added 
this:
<key>Function Pattern</key>
<string>(?si)&lt;(?P&lt;function&gt;virtualhost).*?&gt;.*?servername\s+(?P&lt;function_name&gt;\w*).*?&lt;/(?P=function)&gt;</string>

The regex works in BBEdit's Find to locate virtual host definitions, but I 
neither get virtual hosts in the functions menu nor code folding points after 
restarting BBEdit.


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[EMAIL PROTECTED]
 (spam-safe email address, replace '-' with 'a')

--
------------------------------------------------------------------
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]>

Reply via email to