FIXED WI-20186 Caret isn't indented if there is a comment after block start statement

This commit is contained in:
Rustam Vishnyakov
2016-07-05 21:00:05 +03:00
parent 0fd3a7d317
commit ff9b00efd7
@@ -138,7 +138,8 @@ public abstract class JavaLikeLangLineIndentProvider extends FormatterBasedLineI
}
else {
SemanticEditorPosition position = getPosition(editor, offset);
if (position.before().isAt(RightParenthesis)) {
position = position.before().beforeOptional(LineComment).beforeOptional(Whitespace);
if (position.isAt(RightParenthesis)) {
int offsetAfterParen = position.getStartOffset() + 1;
position.beforeParentheses(LeftParenthesis, RightParenthesis);
if (!position.isAtEnd()) {