Follow-up #151375
In that PR we added helpful SyntaxError messages for common operator typos: =< suggests <=, => suggests >=, and =! suggests !=.
These suggestions currently only work when the typo appears in a plain statement. like
'a => b' invalid syntax. Maybe you meant '>=' instead of '=>'?
So this is for extending in if, while, or other conditions:
These only fire for bare statements, so if a => b: still gives the generic error, no? That is probably fine for a first iteration (the = < tokenization makes it look like an assignment), but maybe we should add a test documenting it or a follow-up issue for the if/while case.
Originally posted by @pablogsal in #151375 (comment)
I'm planning to work on this and submit a PR shortly after the follow up merged, please avoid PR in this
Follow-up #151375
In that PR we added helpful
SyntaxErrormessages for common operator typos:=<suggests<=,=>suggests>=, and=!suggests!=.These suggestions currently only work when the typo appears in a plain statement. like
So this is for extending in
if, while, or other conditions:Originally posted by @pablogsal in #151375 (comment)
I'm planning to work on this and submit a PR shortly after the follow up merged, please avoid PR in this