File tree Expand file tree Collapse file tree 5 files changed +58
-23
lines changed
Test/test_script/format_text
wait_format_by_option_should_be Expand file tree Collapse file tree 5 files changed +58
-23
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ label_no_indent = true
133133do_statement_no_indent = true
134134[{if_condition_no_continuation_indent-eq-true.lua} ]
135135if_condition_no_continuation_indent = true
136- [{keep_line_after_if_statement-eq-minLine-1.lua} ]
137- keep_line_after_if_statement =minLine:1
138-
136+ [{minLine-eq-1.lua} ]
137+ keep_line_after_if_statement = minLine:1
138+ keep_line_after_do_statement = minLine:1
139+ keep_line_after_while_statement = minLine:1
140+ keep_line_after_repeat_statement = minLine:1
141+ keep_line_after_for_statement = minLine:1
142+ keep_line_after_local_or_assign_statement = minLine:1
143+ keep_line_after_function_define_statement = minLine:1
Original file line number Diff line number Diff line change 11if aaa then
22
33end
4-
54if bbb and ccc then
65
76end
8-
97if ccc
108and ccc then
119
1210end
13-
1411function fff ()
1512 if eee
1613 or hhhh then
@@ -20,5 +17,12 @@ function fff()
2017 if aaa == bb
2118 and cccc == bb then
2219 end
20+ do return end
21+ repeat local tt = 1231 until false
22+ local t = 1231
23+ local dd = 123
24+ local eee = 12313131
25+ dd = 131
2326end
2427
28+
Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ label_no_indent = true
133133do_statement_no_indent = true
134134[{if_condition_no_continuation_indent-eq-true.lua} ]
135135if_condition_no_continuation_indent = true
136- [{keep_line_after_if_statement-eq-minLine-1.lua} ]
137- keep_line_after_if_statement =minLine:1
136+ [{minLine-eq-1.lua} ]
137+ keep_line_after_if_statement = minLine:1
138+ keep_line_after_do_statement = minLine:1
139+ keep_line_after_while_statement = minLine:1
140+ keep_line_after_repeat_statement = minLine:1
141+ keep_line_after_for_statement = minLine:1
142+ keep_line_after_local_or_assign_statement = minLine:1
143+ keep_line_after_function_define_statement = minLine:1
138144
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ if aaa then
2+
3+ end
4+
5+ if bbb and ccc then
6+
7+ end
8+
9+ if ccc
10+ and ccc then
11+
12+ end
13+
14+ function fff ()
15+ if eee
16+ or hhhh then
17+
18+ end
19+
20+ if aaa == bb
21+ and cccc == bb then
22+ end
23+
24+ do return end
25+
26+ repeat local tt = 1231 until false
27+
28+ local t = 1231
29+
30+ local dd = 123
31+
32+ local eee = 12313131
33+
34+ dd = 131
35+ end
You can’t perform that action at this time.
0 commit comments