BBEdit Updated to 8.5.1

Posted on October 13, 2006
Filed Under /dev/null/ | 55 views |

BBEdit 8.5.1 - one of the few times a point release has fixed an issue that’s had a direct, long-lasting and adverse impact on me.

The problem was: when creating PHP classes I tend to include a default constructor in them whether that constructor then contains any code or not, ala:

public function __construct()
{}

I do this so I can easily look at a class and know if it isn’t doing something on instantiation, which is often as important to me as knowing when a class is doing something on instantiation, particulary useful if you’re using inheritance.

In versions < 8.5.1 having an empty function like that would cause BBEdit’s function scanner to puke and stop scanning the PHP class file, which was really annoying because I use BBEdit’s function pop-up menu to navigate my source code a lot.

It also had the unfortunate side-effect of causing BBEdit 8.5’s code folding to not function, since obviously if there are no known functions to fold, they cannot be folded. And I like code folding (ask any molecular biologist or poker player, folding is good).

Fortunately BBEdit 8.5.1 fixes this:

Fixed a bug in the PHP function scanner which would cause the scanner to bail when it hit a construct consisting solely of an empty pair of braces:

function foo()
{}

class bar
{}

I like it a lot.

Comments

Leave a Reply