Skip to content

Commit 44b40eb

Browse files
committed
stash
1 parent 6fe1123 commit 44b40eb

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

lua.template.editorconfig

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# see https://github.com/CppCXY/EmmyLuaCodeStyle
33
[*.lua]
4-
# [basic code reformat option]
4+
# [basic]
55
# optional space/tab
66
indent_style = space
77
# if indent_style is space, this is valid
@@ -17,25 +17,34 @@ continuation_indent_size = 4
1717
# if true, continuation_indent_size for local or assign statement is invalid
1818
# however, if the expression list has cross row expression, it will not be aligned to the first expression
1919
local_assign_continuation_align_to_first_expression = false
20+
21+
# if true, ormat like this "local t <const> = 1"
22+
keep_one_space_between_namedef_and_attribute = true
23+
24+
# [function]
2025
# function call expression's args will align to first arg
2126
# however, if the args has cross row arg, it will not be aligned to the first arg
2227
align_call_args = false
28+
29+
2330
# if true, all function define params will align to first param
2431
align_function_define_params = true
25-
#
32+
33+
# [table]
34+
# see document for detail
35+
continuous_assign_table_field_align_to_equal_sign = true
36+
37+
# [statement]
2638
align_chained_expression_statement = false
2739
# if true, format like this "local t = { 1, 2, 3 }"
2840
keep_one_space_between_table_and_bracket = true
2941
# if indent_style is tab, this option is invalid
3042
align_table_field_to_first_field = false
31-
# if true, ormat like this "local t <const> = 1"
32-
keep_one_space_between_namedef_and_attribute = true
3343
# continous line distance
3444
max_continuous_line_distance = 1
3545
# see document for detail
3646
continuous_assign_statement_align_to_equal_sign = true
37-
# see document for detail
38-
continuous_assign_table_field_align_to_equal_sign = true
47+
3948
# if true, the label loses its current indentation
4049
label_no_indent = false
4150
# if true, there will be no indentation in the do statement

0 commit comments

Comments
 (0)