fix(lua): indent functions before they are closed

Fixes #6786
This commit is contained in:
Riley Bruins 2024-07-05 10:17:41 -07:00 committed by Christian Clason
parent f16a775830
commit 4836c1df65
3 changed files with 9 additions and 1 deletions

View file

@ -23,6 +23,7 @@ describe("indent Lua:", function()
run:new_line("func.lua", { on_line = 4, text = "y = y + 1", indent = 2 })
run:new_line("func.lua", { on_line = 5, text = "3,", indent = 4 })
run:new_line("func.lua", { on_line = 9, text = "x = x + 1", indent = 0 })
run:new_line("func.lua", { on_line = 11, text = "x = x + 1", indent = 2 })
run:new_line("string.lua", { on_line = 1, text = "x", indent = 0 })
run:new_line("string.lua", { on_line = 2, text = "x", indent = 0 })
run:new_line("string.lua", { on_line = 3, text = "x", indent = 2 })