Update: add space after function keyword check (fixes #1276)