- Fixed the way the 'function' keyword is matched to avoid capturing the text of the first case in the pattern-matching function.