Folding bodies puts next node same line like I tried to fix by finding last child of the node but nodes consider comments top of the next child and produces following issue: def a(): pass # comment def b(): pass => def a():... def b(): Further #5

Closed
firatkiral wants to merge 1 commit from main into main
firatkiral commented 2022-01-26 01:28:12 +01:00 (Migrated from github.com)
No description provided.
marijnh commented 2022-01-26 08:27:44 +01:00 (Migrated from github.com)

That will still not do the right thing for nested blocks (where the inner block will still span past the newline at the end). I think attached patch should solve this.

That will still not do the right thing for nested blocks (where the inner block will still span past the newline at the end). I think attached patch should solve this.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-python!5
No description provided.