I expect that the print() statement can be correctly indented – actually, there should be exactly one possible indentation here which is one further right compared to if True.
Repro
class Hello:
""""Oh my, was that four quotes?"""
if True:
print() # <- this won't indent
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
An incorrect docstring with an extraneous quote to start with breaks some expectation, causing indentation to fail further down.
Steps To Reproduce/Bad Parse Tree
If we run the repro code example, we get the following tree:
Expected Behavior/Parse Tree
I expect that the
print()
statement can be correctly indented – actually, there should be exactly one possible indentation here which is one further right compared toif True
.Repro