hedy icon indicating copy to clipboard operation
hedy copied to clipboard

Range in for loop not recognised when misspelled

Open LauraTSD opened this issue 3 years ago • 2 comments

image

Range is not recognized when typed like rang.

LauraTSD avatar Apr 01 '21 15:04 LauraTSD

This is basically true for all misspelled keywords, maybe we want to check if this specific one is common (with Dutch kids potentially?)

Felienne avatar Oct 11 '21 09:10 Felienne

Issue still exists, f.e. current level 11:

for counter in rang 1 to 5
    print counter

What I guess is needed here is a more generic invalid rule. In early levels, we have invalid that is basically misspelled keyword followed by anything. Here we would want to gather all words in the line and see if they are like keywords.

Felienne avatar Jan 05 '22 10:01 Felienne

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

Felienne avatar Dec 02 '22 08:12 Felienne