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 folding for classes fails on linebreaks in base list #636

Closed
RonnyPfannschmidt opened this issue Jan 10, 2015 · 3 comments
Closed

Comments

@RonnyPfannschmidt
Copy link

when a python class is written like

class Demo(
        Base Fun):
    pass

then folding ignores it

@FichteFoll
Copy link
Collaborator

What folding specifically? If you mean the fold arrows, those are only displayed if you have 2 or more lines with the same indentation or higher than the following line. In your case this is reversed (meaning the following line has an indent of 2 and the line after that has 1).

@RonnyPfannschmidt
Copy link
Author

i see, then i missunderstood how folding is supposed to work with python.
a bit more syntax awareness would be nice (classes/function definitions)

@FichteFoll
Copy link
Collaborator

Well, that's how folding works everywhere in Sublime Text.

For syntax-based folding there is #101. Since I assume this is what you wanted to express, I'm closing this as a duplicate.

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

No branches or pull requests

2 participants