User-defined functions or any functions for matter which aren't recognized by Aptana are given a scope of constant.other.php. There doesn't seem to be a difference between the following:
<?php //User-defined constant FOOBAR; //User-defined function foobar(); //User-defined function with white-space between name and parentheses foobar (); ?>
I'm guessing that the regex doesn't take into consideration the parentheses following the function name? I'm not really fluent in regex, correct me if I'm wrong/off, but something like this should do the job?