fix(ruby): indent of brackets & parens

This commit is contained in:
Zheng Piaodan 2022-08-13 16:56:02 +08:00 committed by Stephan Seitz
parent 65a1817ba3
commit 48d88ddbff
4 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,5 @@
def indent_brackets
{
{}
}
end

View file

@ -0,0 +1,5 @@
def indent_parens
(
()
)
end

View file

@ -6,6 +6,12 @@ local run = Runner:new(it, "tests/indent/ruby", {
})
describe("indent Ruby:", function()
describe("whole file:", function()
run:whole_file(".", {
expected_failures = {},
})
end)
describe("new line:", function()
run:new_line("indent-unless.rb", { on_line = 1, text = "stmt", indent = 2 })
run:new_line("indent-assignment.rb", { on_line = 1, text = "1 +", indent = 2 })