Fix bug where ^func( was incorrectly matched

It was incorrectly expecting the rest of the function (method)
declaration to follow it after a space.