On Oct 27, 2006, at 3:15 PM, Fritz Anderson wrote:

BBEdit 8.5.1; Lua; function popup.

There was a message earlier about getting Lua code folded, but (a) it was never resolved, and (b) Lua overloads 'end,' so I'm willing to believe folding would be tricky. (Folding braces, however, would be a godsend.)

What I want to know about is marking Lua functions for the navigation popup. My impression from the document is that setting BBLMScansFunctions to <true />, Language Features/Prefix for Functions to 'function' and (maybe) Language Features/Open Parameter Lists to '(', should suffice.

In non-regex mode, the CLM function scanner can handle either pascal style functions or C style functions.

You have to specify "Prefix for Functions" and/or "Prefix for Procedures" to work with Pascal style functions, or the parameter list variants for working with C style functions.

For either of those, you also have to specify how blocks start and stop in the language. ("Open Statement Blocks" and "Close Statement Blocks")

I don't know Lua, by my recollection from the last time this came up was that it wasn't well suited to the pre 8.5 style of CLM function parsing since functions don't have a delimited block structure (begin/ end).

If you can write a regex to find the functions :-), then perhaps we can help you convert the other language features to regular expressions. (If the functions can't be identified by a regex, then a coded language module is going to be the only solution.)

Jim

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