mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Method call in indenting statement should have continuation indent.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user