Skip to content

feat(parsers): Improve folding of block nodes in python #32

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

Merged

Conversation

lijoantony
Copy link
Contributor

Add a new method treesit-fold-range-python-block in treesit-fold-parsers-python to fold below code blocks in python-ts-mode.

  • while_statement
  • for_statement
  • if_statement
  • elif_clause
  • else_clause
  • match_statement
  • case_clause
  • try_statement
  • except_clause
  • with_statement

Fixes #31

Add a new method treesit-fold-range-python-block in treesit-fold-parsers-python
to fold below code blocks in python-ts-mode.

- while_statement
- for_statement
- if_statement
- elif_clause
- else_clause
- match_statement
- case_clause
- try_statement
- except_clause
- with_statement

Fixes emacs-tree-sitter#31
@jcs090218 jcs090218 merged commit c866b8e into emacs-tree-sitter:master May 22, 2025
9 checks passed
@jcs090218
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Folding blocks in python
2 participants