It seems it’s not picking up the pattern
functionName = function() {…
which is, of course, perfectly valid JavaScript.
This may not get fixed in the next build - we’re looking at a major upgrade to the Code Window, so we probably won’t put much work into the current one.