[
  (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
