;; Old... probably too simple
((parent-is "block_parameters") first-sibling 1)
+ ((and (not ruby-ts--after-op-indent-p)
+ (parent-is "binary\\|conditional"))
+ (ruby-ts--bol ruby-ts--statement-ancestor) ruby-indent-level)
+
((parent-is "binary")
ruby-ts--binary-indent-anchor 0)
(forward-char ruby-indent-level))
(point)))
+(defun ruby-ts--after-op-indent-p (&rest _)
+ ruby-after-operator-indent)
+
(defun ruby-ts--class-or-module-p (node)
"Predicate if NODE is a class or module."
(string-match-p ruby-ts--class-or-module-regex (treesit-node-type node)))
(kill-buffer buf)))))
(ruby-ts-deftest-indent "ruby-ts.rb")
-(ruby-ts-deftest-indent "ruby-method-params-indent.rb")
+(ruby-ts-deftest-indent "ruby-after-operator-indent.rb")
(ruby-ts-deftest-indent "ruby-block-indent.rb")
+(ruby-ts-deftest-indent "ruby-method-params-indent.rb")
(provide 'ruby-ts-mode-tests)