childIndent = Indent.getNoneIndent();
}
else {
- childIndent = Indent.getNormalIndent();
+ childIndent = isIndentNext(child) ? Indent.getContinuationIndent() : Indent.getNormalIndent();
}
}
else if (parentType == PyElementTypes.SUBSCRIPTION_EXPRESSION) {
--- /dev/null
+def f(value, value1, value2):
+ if value in (
+ value1, value2) or value == 0: # <- missing continuation indent here
+ return False
\ No newline at end of file
--- /dev/null
+def f(value, value1, value2):
+ if value in (
+ value1, value2) or value == 0: # <- missing continuation indent here
+ return False
\ No newline at end of file
doTest();
}
+ public void testContinuationIndentInIndentingStatement2() { // PY-11868
+ doTest();
+ }
+
public void testBlankLineAfterDecorator() {
doTest();
}