Closed daviwil closed 5 years ago
This PR fixes #290 which reports that the Tree-Sitter Python grammar does not fold elif and else correctly. The fix is to update tree-sitter-python.cson to be a little more explicit about the nodes that cause if_statement folding to end.
elif
else
tree-sitter-python.cson
if_statement
Before
After
None.
elif and else blocks fold as expected.
None?
Fixes #290
Description of the Change
This PR fixes #290 which reports that the Tree-Sitter Python grammar does not fold
elif
andelse
correctly. The fix is to updatetree-sitter-python.cson
to be a little more explicit about the nodes that causeif_statement
folding to end.Before
After
Alternate Designs
None.
Benefits
elif
andelse
blocks fold as expected.Possible Drawbacks
None?
Applicable Issues
Fixes #290