From c831f55b234725a99f908656f996f3e6addc8825 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 1 Feb 2023 20:14:06 +0200 Subject: [PATCH] * lisp/progmodes/ruby-ts-mode.el: Extend treesit-sexp-type-regexp. (ruby-ts-mode): Add more node types to treesit-sexp-type-regexp. --- lisp/progmodes/ruby-ts-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index 1144caf79b6..9fc0c360a2a 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-ts-mode.el @@ -1042,9 +1042,12 @@ leading double colon is not added." "parenthesized_statements" "if" "case" + "when" "block" "do_block" - "begin"))) + "begin" + "binary" + "assignment"))) ;; AFAIK, Ruby can not nest methods (setq-local treesit-defun-prefer-top-level nil) -- 2.39.5