Another fix for indent after semicolon for var statement with line comments

This commit is contained in:
Rustam Vishnyakov
2016-10-25 15:01:03 +03:00
parent c5accce16a
commit fc68c6914f
@@ -202,12 +202,12 @@ public abstract class JavaLikeLangLineIndentProvider implements LineIndentProvid
BlockOpeningBrace,
BlockComment,
DocBlockEnd,
LineComment,
LeftParenthesis,
LanguageStartDelimiter) ||
(position.getLanguage() != Language.ANY) && !position.isAtLanguage(currLanguage)) {
SemanticEditorPosition statementStart = getPosition(position.getEditor(), position.getStartOffset());
if (!statementStart.after().afterOptional(Whitespace).isAtEnd()) {
statementStart.after().afterOptional(Whitespace).afterOptional(LineComment).afterOptional(Whitespace);
if (!statementStart.isAtEnd()) {
return statementStart.getStartOffset();
}
}