Skip to content

Commit bcd78a0

Browse files
committed
impl #7
1 parent 4e3155f commit bcd78a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CodeService/src/LuaFormatter.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,11 @@ std::shared_ptr<FormatElement> LuaFormatter::FormatAlignTableField(LuaAstNode::C
16981698
layout->Add<KeepElement>(1);
16991699
}
17001700
}
1701+
else if (currentLine == leftBraceLine)
1702+
{
1703+
layout->AddChild(FormatNode(current));
1704+
break;
1705+
}
17011706
else if (nextLine - currentLine <= _options.max_continuous_line_distance)
17021707
{
17031708
layout->AddChild(FormatNode(current));

0 commit comments

Comments
 (0)