crystal-community / icr

Interactive console for Crystal programming language
MIT License
506 stars 40 forks source link

Fixed error with unterminated char literal #50

Closed jwoertink closed 7 years ago

jwoertink commented 7 years ago

This PR fixes #49

It still allows for unterminated hash and array literal errors for multi-line hashes and arrays, but when someone tries to use a string with single quotes, an error will be thrown instead.

Also, I couldn't get specs to pass because I got an error related to an older spec. It throws the proper error, we just were catching the wrong case. I just made it case insensitive to catch Invalid|invalid. I think this is related to a newer version of crystal.

jwoertink commented 7 years ago

@veelenga Can I get a review on this one?

veelenga commented 7 years ago

Thank you 👍