Skip to content

'elif' indentation is forced to deepest 'if' one #135

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

Closed
asmka opened this issue Mar 20, 2020 · 2 comments · Fixed by #136
Closed

'elif' indentation is forced to deepest 'if' one #135

asmka opened this issue Mar 20, 2020 · 2 comments · Fixed by #136

Comments

@asmka
Copy link

asmka commented Mar 20, 2020

'elif' indentation is forced to deepest 'if' one as follows.
before indent:

if True:
    if True:
        pass
elif:
    pass

after indent:

if True:
    if True:
        pass
    elif:
        pass

expected after indent:

if True:
    if True:
        pass
elif:
    pass

On the other hand, 'else' indentation performs as I expected.
before indent:

if True:
    if True:
        pass
else:
    pass

after indent:

if True:
    if True:
        pass
else:
    pass
blueyed added a commit to blueyed/vim-python-pep8-indent that referenced this issue Mar 20, 2020
@blueyed
Copy link
Member

blueyed commented Mar 20, 2020

Thanks for the report - I've noticed this myself, but now took the time to fix it: #136.

blueyed added a commit that referenced this issue Mar 20, 2020
@asmka
Copy link
Author

asmka commented Mar 21, 2020

Thank you for your quick fixing.
I confirmed expected behavior.

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 a pull request may close this issue.

2 participants