Add word boundaries to "function" keyword

Fixes syntax problems when an identifier contains the word 'function'
(e.g. 'functionName').