language-python
language-python copied to clipboard
Increase indent if line ends with an open bracket
Re #22
@patrys have you seen https://atom.io/packages/python-indent (disclosure, I've worked on it). It handles hanging indents (the PR you've opened here) along with other line continuations.
def f(param1, param2,
param3, param4):
x = [1, 2, 3,
4, 5, 6]
Yes, I've used it for a while but unfortunately it's not perfect either.
Have you used the latest version? It underwent a complete overhaul about a month ago.
If you are using a recent version, would you mind filing some issues showing where unexpected behavior is cropping up? I want the package to be as robust as possible.