CppCXY / EmmyLuaCodeStyle

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

v3.6.16 function formatter seems not OK #93

Closed xiangnanscu closed 1 year ago

xiangnanscu commented 1 year ago

expected:

local context = {
  form_field_token = utils.trunk(form_field_token, 2):map(function(e)
    local form_item_token, widget = e[1], e[2]
    return format(form_item_token, widget)
  end):join('\n'),
}

actually:

local context = {
  form_field_token = utils.trunk(form_field_token, 2):map(function(e)
        local form_item_token, widget = e[1], e[2]
        return format(form_item_token, widget)
      end):join('\n'),
}