Fix continuation indentation in while statement (PY-11869).

This commit is contained in:
Dmitry Trofimov
2014-01-23 14:29:02 +01:00
parent 24c45a20fa
commit c7d5036e73
3 changed files with 12 additions and 3 deletions
@@ -284,7 +284,8 @@ public class PyBlock implements ASTBlock {
psi instanceof PyFunction ||
psi instanceof PyTryExceptStatement ||
psi instanceof PyElsePart ||
psi instanceof PyIfPart;
psi instanceof PyIfPart ||
psi instanceof PyWhileStatement;
}
private static boolean isSubscriptionOperand(ASTNode child) {
@@ -28,4 +28,8 @@ try:
pass
except \
AttributeError:
pass
pass
while value \
in values: # <- missing continuation indent here
do_smth()
@@ -28,4 +28,8 @@ try:
pass
except \
AttributeError:
pass
pass
while value \
in values: # <- missing continuation indent here
do_smth()