hedy
hedy copied to clipboard
Check for "almost quote"
Since #1085 we give better error messages for backticks (#721):
But, now we do not give a more specialised warning, something like: You enclosed the string in ` instead of '.
Rust has a notion of "similar characters" with lovely error messages (see: https://github.com/rust-lang/rust/issues/25957) like this:
note: Unicode character U+37E (Greek Question Mark) looks like a semicolon, but is not.
Would be really cool if we implemented something like that too!
Maybe confusables can help here? I don't know whether it can do the same thing that the Rust PR can, but maybe it's a start.
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
Ah good to get a reminder of old issues! What do you think @jpelay, one for you too (but not with all too high priority I think?)
Ah good to get a reminder of old issues! What do you think @jpelay, one for you too (but not with all too high priority I think?)
Ok!! No problem, I like working on the grammar :D
Now discussed in https://github.com/hedyorg/hedy/discussions/3759