nvim-treesitter/runtime/queries/ruby/indents.scm

44 lines
434 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)
(unless)
(assignment)
(parenthesized_statements)
] @indent.begin
2021-01-05 19:26:08 +07:00
[
"end"
")"
"}"
"]"
] @indent.end
2021-01-05 19:26:08 +07:00
[
2023-01-09 20:04:43 +01:00
"end"
")"
"}"
"]"
(when)
2021-01-05 19:26:08 +07:00
(elsif)
2022-02-19 15:34:55 -05:00
(else)
(rescue)
(ensure)
] @indent.branch
(comment) @indent.ignore