At 10:31 am -0400 14/9/06, Seth Dillingham wrote:
>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.

That was my conclusion too. Anyone from BB able to comment on whether this is a 
bug that will be fixed, or whether this is the expected behaviour?

Also, I seeing something odd when trying a different approach. I'm defining 
both function and function name sub-patterns, and it seems to work. However if 
the text matched by a function is on just one line then no more functions are 
shown in the functions menu after that one. It's possible that it's not the one 
line thing though - I think the other common factor is that the function ends 
just one character after the function name. Although I may be wrong, I don't 
think it's my regex as if one removes the 'problem' function then all the 
others suddenly show up without a problem. Anyway, I thought I would ask and 
see if this rings any bells with anyone.

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

Reply via email to