mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
Add tests correctly for ruby rescue/ensure indentation
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
begin
|
||||
ensure
|
||||
end
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
begin
|
||||
rescue StandardError
|
||||
end
|
||||
|
||||
@@ -16,5 +16,7 @@ describe("indent Ruby:", 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 })
|
||||
run:new_line("indent-parenthesized-statements.rb", { on_line = 1, text = "stmt", indent = 2 })
|
||||
run:new_line("indent-rescue.rb", { on_line = 1, text = "rescue", indent = 0 })
|
||||
run:new_line("indent-ensure.rb", { on_line = 1, text = "ensure", indent = 0 })
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user