don't process open block inheritors in GroovyIndentProcessor

This commit is contained in:
Max Medvedev
2013-04-30 18:42:21 +04:00
parent 5a5ed80439
commit 454e29bccb
@@ -293,6 +293,9 @@ public class GroovyIndentProcessor extends GroovyElementVisitor {
@Override
public void visitOpenBlock(GrOpenBlock block) {
final IElementType type = block.getNode().getElementType();
if (type != OPEN_BLOCK && type != CONSTRUCTOR_BODY) return;
if (myChildType != mLCURLY && myChildType != mRCURLY) {
myResult = Indent.getNormalIndent();
}