We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 424fcd5 commit 73cc1bcCopy full SHA for 73cc1bc
CodeFormatCore/src/Format/Analyzer/LineBreakAnalyzer.cpp
@@ -42,7 +42,7 @@ void LineBreakAnalyzer::ComplexAnalyze(FormatState &f, const LuaSyntaxTree &t) {
42
switch (syntaxNode.GetSyntaxKind(t)) {
43
case LuaSyntaxNodeKind::Block: {
44
auto children = syntaxNode.GetChildren(t);
45
- if (syntaxNode.IsSingleLineNode(t)) {
+ if (syntaxNode.GetParent(t).IsSingleLineNode(t)) {
46
if (children.size() <= 1) {
47
auto spaceAnalyzer = f.GetAnalyzer<SpaceAnalyzer>();
48
spaceAnalyzer->SpaceAround(syntaxNode, t);
0 commit comments