mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(ruby): indent parenthesized_statements
This commit is contained in:
parent
1ca366af9b
commit
65a1817ba3
3 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,7 @@
|
|||
(begin)
|
||||
(unless)
|
||||
(assignment)
|
||||
(parenthesized_statements)
|
||||
] @indent
|
||||
|
||||
[
|
||||
|
|
|
|||
2
tests/indent/ruby/indent-parenthesized-statements.rb
Normal file
2
tests/indent/ruby/indent-parenthesized-statements.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(
|
||||
)
|
||||
|
|
@ -9,5 +9,6 @@ describe("indent Ruby:", function()
|
|||
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 })
|
||||
run:new_line("indent-parenthesized-statements.rb", { on_line = 1, text = "stmt", indent = 2 })
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue