Quoting Seth Dillingham <[EMAIL PROTECTED]>:
On 9/14/2006, Johan Solve said:

This pattern works for any file that has something that looks like html or
xml, but only offers fold points at the root level of the file - no
nesting.

I think the problem is that function matching is not recursive. Once it has
matched the outer function, it continues searching after the end of the
matched function, so it never considers the inner functions for possible
matches.

That's just how it looks from the outside, but I've spent a lot of time
tinkering with this so I'm pretty sure that's how it works.

Has anybody filed a bug on this yet?

Sort of.  I requested the ability to search for statement blocks, but I
didn't specifically deal with functions inside functions.  (the languages
I've been doing modules for don't support them, or closures, or anonymous
functions, so I haven't tried.)

... but I have an idea, that I don't have time to test right now,
so I thought I'd throw it out, in case someone wanted to play with it:

Try naming a forward lookahead assertion as 'function', so that the
regex engine considers the end of the match to be after the function name (or
some other appropriate point), but not after the function.

(and um ... I picked up Lego Star Wars II, so there's a very good chance I
'won't have time' tonight to try it.)

-----
Joe Hourcle


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