@@ -152,7 +152,7 @@ AlignAnalyzer::AnalyzeContinuousLocalOrAssign(FormatState &f, LuaSyntaxNode &syn
152152
153153 if (stmt.GetTokenKind (t) == TK_SHORT_COMMENT ) {
154154 auto line = stmt.GetStartLine (t);
155- if (line - lastLine > 2 ) {
155+ if (line - lastLine > f. GetStyle (). align_continuous_line_space ) {
156156 if (group.size () > 1 ) {
157157 PushAlignGroup (strategy, group);
158158 }
@@ -166,7 +166,7 @@ AlignAnalyzer::AnalyzeContinuousLocalOrAssign(FormatState &f, LuaSyntaxNode &syn
166166 if (kind == LuaSyntaxNodeKind::LocalStatement
167167 || kind == LuaSyntaxNodeKind::AssignStatement) {
168168 auto line = stmt.GetStartLine (t);
169- if (line - lastLine <= 2 ) {
169+ if (line - lastLine <= f. GetStyle (). align_continuous_line_space ) {
170170 group.push_back (stmt.GetIndex ());
171171 } else {
172172 if (group.size () > 1 ) {
@@ -220,7 +220,7 @@ void AlignAnalyzer::AnalyzeContinuousRectField(FormatState &f, LuaSyntaxNode &sy
220220 auto tokenKind = field.GetTokenKind (t);
221221 if (tokenKind != 0 ) {
222222 if (tokenKind == TK_SHORT_COMMENT ) {
223- if (line - lastLine > 2 ) {
223+ if (line - lastLine > f. GetStyle (). align_continuous_line_space ) {
224224 if (group.size () > 1 ) {
225225 PushAlignGroup (strategy, group);
226226 }
@@ -237,7 +237,7 @@ void AlignAnalyzer::AnalyzeContinuousRectField(FormatState &f, LuaSyntaxNode &sy
237237 group.clear ();
238238 lastLine++;
239239 continue ;
240- } else if (line - lastLine <= 2 ) {
240+ } else if (line - lastLine <= f. GetStyle (). align_continuous_line_space ) {
241241 group.push_back (field.GetIndex ());
242242 } else {
243243 if (group.size () > 1 ) {
0 commit comments