LuaFormatter
LuaFormatter copied to clipboard
chop down parameter for function call
#37 implemented the chopping down of parameters for function headers. It would be great to extend this to function calls as well.
Input
local str = test(123, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345)
desired output
local str = test(123,
12312,
5345,
12312,
5345,
12312,
5345,
12312,
5345,
12312,
5345,
12312,
5345,
12312,
5345,
12312,
5345,
12312,
5345,
12312,
5345,)
current output
local str = test(
123, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312, 5345, 12312,
5345, 12312, 5345
)
The situation of function call's args will be more complex. It may be supported in the future.