Skip to content

Commit 7bf6a0c

Browse files
committed
Revert "Merge remote-tracking branch 'origin/master'"
This reverts commit e39bf19, reversing changes made to 3f813b8.
1 parent e39bf19 commit 7bf6a0c

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

Test2/src/FormatTest2.cpp

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@
88

99
int main() {
1010
std::string buffer = R"(
11-
local t = function() local a = 131
11+
local t = { function ()
12+
local t = 123
13+
end }
1214
13-
14-
local b = function()
15-
local c = {
16-
}
17-
end
18-
end
19-
20-
local t2 = function()
21-
local c = 1
22-
end
15+
local t = { {
16+
okokok = 123
17+
} }
2318
)";
2419

2520
auto file = std::make_shared<LuaFile>(std::move(buffer));
@@ -35,8 +30,6 @@ end
3530
std::cout << t.GetDebugView() << std::endl;
3631

3732
LuaStyle s;
38-
s.indent_style = IndentStyle::Tab;
39-
s.keep_indents_on_empty_lines = true;
4033
FormatBuilder b(s);
4134
auto text = b.GetFormatResult(t);
4235
std::cout<< text << std::endl;
@@ -47,4 +40,4 @@ end
4740
// std::cout << diag.Message << std::endl;
4841
// }
4942
return 0;
50-
}
43+
}

0 commit comments

Comments
 (0)