aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/ruby_spec.lua
diff options
context:
space:
mode:
authorCameron <Alleyria@gmail.com>2023-01-06 19:43:05 +0100
committerStephan Seitz <stephan.seitz@fau.de>2023-01-06 19:48:42 +0100
commit2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a (patch)
tree1e655faeed8f856b088e475cadb29d2f1ef00c5e /tests/indent/ruby_spec.lua
parentCreate indent-ensure.rb (diff)
downloadnvim-treesitter-2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a.tar
nvim-treesitter-2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a.tar.gz
nvim-treesitter-2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a.tar.bz2
nvim-treesitter-2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a.tar.lz
nvim-treesitter-2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a.tar.xz
nvim-treesitter-2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a.tar.zst
nvim-treesitter-2d8e6b666297ddf19cbf7cbc2b0f1928bc49224a.zip
Add tests correctly for ruby rescue/ensure indentation
Diffstat (limited to 'tests/indent/ruby_spec.lua')
-rw-r--r--tests/indent/ruby_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/indent/ruby_spec.lua b/tests/indent/ruby_spec.lua
index 277d02bf0..b669b8938 100644
--- a/tests/indent/ruby_spec.lua
+++ b/tests/indent/ruby_spec.lua
@@ -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)