Skip to content

Commit dc2a0dd

Browse files
committed
allow align_continuous_line_space work for inline comment
1 parent 783f269 commit dc2a0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormatCore/src/Format/Analyzer/AlignAnalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ void AlignAnalyzer::AnalyzeInlineComment(FormatState &f, LuaSyntaxNode &syntaxNo
689689
}
690690

691691
auto lastComment = LuaSyntaxNode(topGroup.back());
692-
if (currentLine - lastComment.GetEndLine(t) > 2) {
692+
if (currentLine - lastComment.GetEndLine(t) > f.GetStyle().align_continuous_line_space) {
693693
auto &newTopGroup = _inlineCommentGroup.emplace_back();
694694
newTopGroup.push_back(syntaxNode.GetIndex());
695695
} else {

0 commit comments

Comments
 (0)