fix(gleam): minor indent fixes

This commit is contained in:
Alex Manning 2023-06-03 21:39:20 -04:00 committed by GitHub
parent 5ac8cf8ee5
commit f84de0d6cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,7 @@
fn() {
fn() {
fn() {
True
}
}
}

View file

@ -115,5 +115,13 @@ describe("indent Gleam:", function()
run:new_line("todo.gleam", { on_line = 3, text = "//", indent = 4 })
run:new_line("todo.gleam", { on_line = 4, text = "//", indent = 2 })
run:new_line("todo.gleam", { on_line = 5, text = "//", indent = 0 })
run:new_line("anonymous_function.gleam", { on_line = 1, text = "//", indent = 2 })
run:new_line("anonymous_function.gleam", { on_line = 2, text = "//", indent = 4 })
run:new_line("anonymous_function.gleam", { on_line = 3, text = "//", indent = 6 })
run:new_line("anonymous_function.gleam", { on_line = 4, text = "//", indent = 6 })
run:new_line("anonymous_function.gleam", { on_line = 5, text = "//", indent = 4 })
run:new_line("anonymous_function.gleam", { on_line = 6, text = "//", indent = 2 })
run:new_line("anonymous_function.gleam", { on_line = 7, text = "//", indent = 0 })
end)
end)