Method call in indenting statement should have continuation indent.

This commit is contained in:
Dmitry Trofimov
2014-01-23 17:57:38 +01:00
parent c7d5036e73
commit 74c850caf7
3 changed files with 15 additions and 2 deletions
@@ -253,6 +253,11 @@ public class PyBlock implements ASTBlock {
else if (parentType == PyElementTypes.REFERENCE_EXPRESSION) {
if (child != _node.getFirstChildNode()) {
childIndent = Indent.getNormalIndent();
if (hasLineBreaksBefore(child, 1)) {
if (isIndentNext(child)) {
childIndent = Indent.getContinuationIndent();
}
}
}
}
@@ -32,4 +32,8 @@ except \
while value \
in values: # <- missing continuation indent here
do_smth()
do_smth()
if (1 + x.
value()):
pass
@@ -32,4 +32,8 @@ except \
while value \
in values: # <- missing continuation indent here
do_smth()
do_smth()
if (1 + x.
value()):
pass