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

[Python] Adjust fold rules #3871

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

deathaxe
Copy link
Collaborator

@deathaxe deathaxe commented Nov 18, 2023

This commit ...

  1. includes trailing whitespace into most fold regions. As a result closing brackets don't stay at a separate line anymore.

    Exception: function parameters ; as folding multi-line parameters should work independently from folding code blocks (by indentation).

  2. add fold rules for triple quoted block strings.

Examples

what before after
decorators grafik grafik
function calls grafik grafik
dicts grafik grafik
lists grafik grafik

This commit ...

1. includes trailing whitespace into most fold regions.
   As a result closing brackets don't stay at a separate line anymore.

   Exception: function parameters ; as folding multi-line parameters should
   work independently from folding code blocks (by indentation).

2. add fold rules for triple quoted block strings.
@FichteFoll FichteFoll merged commit 472ba63 into sublimehq:master Feb 26, 2024
2 checks passed
@deathaxe deathaxe deleted the pr/python/improve-fold-rules branch February 27, 2024 07:56
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.

3 participants