Skip to content

Commit 920abfb

Browse files
committed
发布0.6.0
1 parent 46e27a7 commit 920abfb

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed

Test/test_script/format_text/wait_format_by_option/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ keep_one_space_between_table_and_bracket = true
2626
align_table_field_to_first_field = false
2727
# if true, ormat like this "local t <const> = 1"
2828
keep_one_space_between_namedef_and_attribute = false
29+
# continous line distance
30+
max_continuous_line_distance = 1
31+
# if true, iff any one of the consecutive rows meets the condition of aligning to the equal sign,
32+
# the consecutive rows will be aligned to the equal sign
33+
weak_alignment_rule = false
2934
# see document for detail
3035
continuous_assign_statement_align_to_equal_sign = true
3136
# see document for detail
@@ -133,6 +138,10 @@ label_no_indent = true
133138
do_statement_no_indent = true
134139
[{if_condition_no_continuation_indent-eq-true.lua}]
135140
if_condition_no_continuation_indent = true
141+
[{max_continuous_line_distance-eq-2.lua}]
142+
max_continuous_line_distance = 2
143+
[{weak_alignment_rule-eq-true.lua}]
144+
weak_alignment_rule = true
136145
[{minLine-eq-1.lua}]
137146
keep_line_after_if_statement = minLine:1
138147
keep_line_after_do_statement = minLine:1
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
local t = 1
2+
local t2 = 123
3+
4+
local t3 = 123
5+
6+
7+
local t4= 123
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
local t = 131
3+
local t2 = 2
4+
local t3 = 4

Test/test_script/format_text/wait_format_by_option_should_be/.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ 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+
[{max_continuous_line_distance-eq-2.lua}]
137+
max_continuous_line_distance = 2
138+
[{weak_alignment_rule-eq-true.lua}]
139+
weak_alignment_rule = true
136140
[{minLine-eq-1.lua}]
137141
keep_line_after_if_statement = minLine:1
138142
keep_line_after_do_statement = minLine:1
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
local t = 1
2+
local t2 = 123
3+
4+
local t3 = 123
5+
6+
7+
local t4 = 123
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
local t = 131
2+
local t2 = 2
3+
local t3 = 4

0 commit comments

Comments
 (0)