Skip to content

Commit e60214b

Browse files
committed
提交测试
1 parent 99ec9e6 commit e60214b

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

Test/test_script/format_text/wait_format_by_option/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ if_condition_no_continuation_indent = true
142142
max_continuous_line_distance = 2
143143
[{weak_alignment_rule-eq-true.lua}]
144144
weak_alignment_rule = true
145+
[{table_append_expression_no_space-eq-true.lua}]
146+
table_append_expression_no_space = true
145147
[{minLine-eq-1.lua}]
146148
keep_line_after_if_statement = minLine:1
147149
keep_line_after_do_statement = minLine:1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
local t = {}
2+
t[#t+1] = 1
3+
t[#t + 1] = 2
4+
t[#t+2] = 3
5+
t[#t+{}] = 4
6+
t[#t] = 5
7+
t[t] = 6
8+
t[{}+1]=7
9+
10+
11+

Test/test_script/format_text/wait_format_by_option_should_be/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ if_condition_no_continuation_indent = true
137137
max_continuous_line_distance = 2
138138
[{weak_alignment_rule-eq-true.lua}]
139139
weak_alignment_rule = true
140+
[{table_append_expression_no_space-eq-true.lua}]
141+
table_append_expression_no_space = true
140142
[{minLine-eq-1.lua}]
141143
keep_line_after_if_statement = minLine:1
142144
keep_line_after_do_statement = minLine:1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
local t = {}
2+
t[#t+1] = 1
3+
t[#t+1] = 2
4+
t[#t + 2] = 3
5+
t[#t + {}] = 4
6+
t[#t] = 5
7+
t[t] = 6
8+
t[{} + 1] = 7

lua.template.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ label_no_indent = false
4141
do_statement_no_indent = false
4242
# if true, the conditional expression of the if statement will not be a continuation line indent
4343
if_condition_no_continuation_indent = false
44-
44+
# if true, t[#t+1] will not space wrapper '+'
45+
table_append_expression_no_space = false
4546

4647
# optional crlf/lf
4748
end_of_line = crlf

0 commit comments

Comments
 (0)