Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code folding for 'elif' and 'else' statements #292

Merged
merged 1 commit into from Feb 6, 2019

Conversation

Projects
None yet
1 participant
@daviwil
Copy link
Member

daviwil commented Feb 6, 2019

Description of the Change

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.

Before

python_folding_broken

After

python_folding_fixed

Alternate Designs

None.

Benefits

elif and else blocks fold as expected.

Possible Drawbacks

None?

Applicable Issues

Fixes #290

@daviwil daviwil merged commit 8775c18 into master Feb 6, 2019

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@daviwil daviwil deleted the dw-fix-folding branch Feb 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.