As of version 0.654.2, auto-indentation gives an incorrect result on a function call with multiple arguments that is an argument of a function call on the same line. The closing brackets are indented with an extra tab, which is inconsistent with a table literal or calling the function with a string or table.
print(string.format(
'really long function call split into multiple lines %f',
game:GetService('RunService').RenderStepped:Wait()
)) -- this line should not be indented
--these are correctly formatted
print({
})
print(table.freeze{
})
print(string.byte[[
]])
print(string.byte'\z
')
Expected behavior
The behaviour on a function call matches the other cases described, which should be the following:
print(string.format(
'really long function call split into multiple lines %f',
game:GetService('RunService').RenderStepped:Wait()
))