You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An unused identifier is invalid code and is expected to give errors. However, when some valid code come after it, the errors get weird and it make it difficult to provide something useful to the user.
This is difficult - as much as I'd like to fix this, I think the solution is to either rely on better output from incremental parsing (as the USER types, the tree isn't as malformed when just immediately parsing bad code), or to allow this as an invalid rule and it be denoted as such
An unused identifier is invalid code and is expected to give errors. However, when some valid code come after it, the errors get weird and it make it difficult to provide something useful to the user.
This one is fine:
These are not:
1.
In each cases the
FOO
identifier is wrongly put inside a function_definition. A python_identifier also comes out of nowhere in 1. and 2.The text was updated successfully, but these errors were encountered: