mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Another fix for indent after semicolon for var statement with line comments
This commit is contained in:
+2
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user