hedy icon indicating copy to clipboard operation
hedy copied to clipboard

Check for "almost quote"

Open Felienne opened this issue 3 years ago • 1 comments

Since #1085 we give better error messages for backticks (#721):

image

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!

Felienne avatar Oct 26 '21 11:10 Felienne

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.

thiagoarrais avatar Oct 26 '21 15:10 thiagoarrais

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.

github-actions[bot] avatar Oct 27 '22 09:10 github-actions[bot]

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?)

Felienne avatar Oct 27 '22 10:10 Felienne

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

jpelay avatar Oct 28 '22 14:10 jpelay

Now discussed in https://github.com/hedyorg/hedy/discussions/3759

Felienne avatar Dec 02 '22 08:12 Felienne