jheruty / hscpp

Runtime compiled C++ with hot-swapped classes.
MIT License
91 stars 5 forks source link

Improve error message for unterminated strings, including the start line and the string's beginning. #17

Closed jheruty closed 3 years ago

jheruty commented 3 years ago

https://github.com/jheruty/hscpp/issues/15

The error message for the "unterminated string" error was confusing, as this would only be caught at the end of the file. Add the start line and the beginning of the string to make the error more readable.