Skip to content

Commit

Permalink
allow align_continuous_line_space work for inline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Apr 7, 2024
1 parent 783f269 commit dc2a0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeFormatCore/src/Format/Analyzer/AlignAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ void AlignAnalyzer::AnalyzeInlineComment(FormatState &f, LuaSyntaxNode &syntaxNo
}

auto lastComment = LuaSyntaxNode(topGroup.back());
if (currentLine - lastComment.GetEndLine(t) > 2) {
if (currentLine - lastComment.GetEndLine(t) > f.GetStyle().align_continuous_line_space) {
auto &newTopGroup = _inlineCommentGroup.emplace_back();
newTopGroup.push_back(syntaxNode.GetIndex());
} else {
Expand Down

0 comments on commit dc2a0dd

Please sign in to comment.