sterpe / coffee-fmt

gofmt for coffee
MIT License
9 stars 4 forks source link

Failing test case - undefined parameter #7

Closed NotBobTheBuilder closed 9 years ago

NotBobTheBuilder commented 9 years ago

There seems to be a bug when the value undefined is passed as a parameter.

I’d expect foo undefined undefined undefined to be produced, instead I get fooundefinedundefinedundefined when running coffee-fmt

NotBobTheBuilder commented 9 years ago

(the same also seems to happen with null)

sterpe commented 9 years ago

Probably not on the reserved word list for spacing Unfortunately there are no token classes (like RESERVED_WORD) coming out of the lexer so we have deal with each one individually.