CppCXY / EmmyLuaCodeStyle

fast, powerful, and feature-rich Lua formatting and checking tool.
MIT License
140 stars 27 forks source link

Strange formatting result #65

Closed ltWolfik closed 2 years ago

ltWolfik commented 2 years ago

For the next code:

local function error_msg(s, fmt, ...)
    s:println("error: " .. string.format(fmt, ...))
end

Formatting results in the following (strange a lot spaces before fmt arg):

local function error_msg(s, fmt, ...)
    s:println("error: " .. string.format(          fmt, ...))
end

I have the following settings in .editorconfig for lua:

indent_style = tab
indent_size = 4
keep_one_space_between_table_and_bracket = false
align_call_args = true
continuous_assign_statement_align_to_equal_sign = false
continuous_assign_table_field_align_to_equal_sign = false
end_of_line = lf
max_line_length = 80
insert_final_newline = false
CppCXY commented 2 years ago

Ok, I see this bug