New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lexer: Provide more helpful error message for trailing colon #1828
Comments
related: #1358 |
Notice that indentation isn't the issue here. Since
is a legitimate way of writing
is erroneous only insofar as Ideally, I'd want the compiler to say something like
|
This would indeed be really helpful. Coming from Python I had |
Seems like the latter case has been fixed, while the first case has changed but still isn’t good. |
If you accidentally add a colon at the end of a line, like in Python, the CoffeeScript compiler (HEAD) produces rather unhelpful error messages. I ended up spending some time yesterday hunting down an extra colon in the middle of my source. ;-)
This is not really a bug, more like a nuisance -- just thought you might appreciate the report. Feel free to close it if there is nothing that can be done.
The text was updated successfully, but these errors were encountered: