nvim-treesitter/queries/ruby/indents.scm

42 lines
355 B
Scheme
Raw Normal View History

2021-01-05 19:26:08 +07:00
[
(class)
2021-04-17 06:52:14 +01:00
(singleton_class)
2021-01-05 19:26:08 +07:00
(method)
(singleton_method)
2021-01-05 19:26:08 +07:00
(module)
(call)
(if)
(block)
(do_block)
(hash)
(array)
(argument_list)
(case)
2022-02-19 15:34:55 -05:00
(while)
(until)
(for)
(begin)
2021-01-05 19:26:08 +07:00
] @indent
[
"end"
")"
"}"
"]"
] @indent_end
2021-01-05 19:26:08 +07:00
[
"("
")"
"{"
"}"
"["
"]"
(when)
2021-01-05 19:26:08 +07:00
(elsif)
2022-02-19 15:34:55 -05:00
(else)
2021-01-05 19:26:08 +07:00
"end"
] @branch
(comment) @ignore