[feature] Better Error Display
Vurv78 opened this issue · comments
Vurv commented
Is your feature request related to a problem? Please describe.
Depends on #10 being fixed.
Describe the solution you'd like
I'd like for error messages to be similar to Rust's errors, where the tokens are pointed out in a code block, and potentially there is a "fixed" code block right under.
E.g.
if (true) {
}
/*
Warning:
Redundant if statement:
if (true)
^^^^^^^^^ This will always run the if statement.
*/
Or an example from codespan