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
I believe this reveals a flaw in the indentation sensitivity of the python parser. Ideally:
print "hi" should not get parsed as a child of the function_definition.
The empty block should be filled in with a MISSING recovery of insertion of pass
I don't know much about tree sitter grammar construction, so I am not sure if fixing this is feasible. Similar issues occur with unterminated parenthesis at the end of the block, incomplete infix operators, etc.
The text was updated successfully, but these errors were encountered:
In the playground, if I type in
I get
If I add a statement at indent level 0:
I get
I believe this reveals a flaw in the indentation sensitivity of the python parser. Ideally:
print "hi"
should not get parsed as a child of thefunction_definition
.The empty block should be filled in with a
MISSING
recovery of insertion ofpass
I don't know much about tree sitter grammar construction, so I am not sure if fixing this is feasible. Similar issues occur with unterminated parenthesis at the end of the block, incomplete infix operators, etc.
The text was updated successfully, but these errors were encountered: