nvim-treesitter/queries/ruby/indents.scm
Cameron 4ac38ee2d1 Update indents for Ruby
Add `rescue` and `ensure` as a @branch captures for ruby
2023-01-06 19:48:42 +01:00

44 lines
420 B
Scheme

[
(class)
(singleton_class)
(method)
(singleton_method)
(module)
(call)
(if)
(block)
(do_block)
(hash)
(array)
(argument_list)
(case)
(while)
(until)
(for)
(begin)
(unless)
(assignment)
(parenthesized_statements)
] @indent
[
"end"
")"
"}"
"]"
] @indent_end
[
")"
"}"
"["
"]"
(when)
(elsif)
(else)
(rescue)
(ensure)
"end"
] @branch
(comment) @ignore