On moonscript, if theres a {, a keyword will be highlighted with function style color.

Correct highlighting:
toPath = (path) ->
if isArray path
path
else { path }
This occurs with any keyword.

Correct highlighting:
toPath = (path) ->
if isArray path
return path
else
return {path}