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 e39bf19 commit 7bf6a0cCopy full SHA for 7bf6a0c
Test2/src/FormatTest2.cpp
@@ -8,18 +8,13 @@
8
9
int main() {
10
std::string buffer = R"(
11
-local t = function() local a = 131
+local t = { function ()
12
+ local t = 123
13
+end }
14
-
- local b = function()
15
- local c = {
16
- }
17
- end
18
-end
19
20
-local t2 = function()
21
- local c = 1
22
+local t = { {
+ okokok = 123
+} }
23
)";
24
25
auto file = std::make_shared<LuaFile>(std::move(buffer));
@@ -35,8 +30,6 @@ end
35
30
std::cout << t.GetDebugView() << std::endl;
36
31
37
32
LuaStyle s;
38
- s.indent_style = IndentStyle::Tab;
39
- s.keep_indents_on_empty_lines = true;
40
33
FormatBuilder b(s);
41
34
auto text = b.GetFormatResult(t);
42
std::cout<< text << std::endl;
@@ -47,4 +40,4 @@ end
47
// std::cout << diag.Message << std::endl;
48
// }
49
return 0;
50
-}
43
+}
0 commit comments