nvim-treesitter/queries/ruby/indents.scm
2023-01-09 22:17:50 +01:00

43 lines
414 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
[
"end"
")"
"}"
"]"
(when)
(elsif)
(else)
(rescue)
(ensure)
] @branch
(comment) @ignore