11
22# see https://github.com/CppCXY/EmmyLuaCodeStyle
33[* .lua ]
4- # [basic code reformat option ]
4+ # [basic]
55# optional space/tab
66indent_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
1919local_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
2227align_call_args = false
28+
29+
2330# if true, all function define params will align to first param
2431align_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]
2638align_chained_expression_statement = false
2739# if true, format like this "local t = { 1, 2, 3 }"
2840keep_one_space_between_table_and_bracket = true
2941# if indent_style is tab, this option is invalid
3042align_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
3444max_continuous_line_distance = 1
3545# see document for detail
3646continuous_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
4049label_no_indent = false
4150# if true, there will be no indentation in the do statement
0 commit comments