Skip to content

Commit 1972703

Browse files
committed
minLine基本测试
1 parent 1b77918 commit 1972703

File tree

5 files changed

+58
-23
lines changed

5 files changed

+58
-23
lines changed

Test/test_script/format_text/wait_format_by_option/.editorconfig

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ label_no_indent = true
133133
do_statement_no_indent = true
134134
[{if_condition_no_continuation_indent-eq-true.lua}]
135135
if_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

Test/test_script/format_text/wait_format_by_option/if_condition_no_continuation_indent-eq-true.lua renamed to Test/test_script/format_text/wait_format_by_option/minLine-eq-1.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
if aaa then
22

33
end
4-
54
if bbb and ccc then
65

76
end
8-
97
if ccc
108
and ccc then
119

1210
end
13-
1411
function 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
2326
end
2427

28+

Test/test_script/format_text/wait_format_by_option_should_be/.editorconfig

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ label_no_indent = true
133133
do_statement_no_indent = true
134134
[{if_condition_no_continuation_indent-eq-true.lua}]
135135
if_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

Test/test_script/format_text/wait_format_by_option_should_be/keep_line_after_if_statement-eq-minLine-1.lua

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)