From: Juri Linkov Date: Wed, 1 Feb 2023 18:14:06 +0000 (+0200) Subject: * lisp/progmodes/ruby-ts-mode.el: Extend treesit-sexp-type-regexp. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c831f55b234725a99f908656f996f3e6addc8825;p=emacs.git * lisp/progmodes/ruby-ts-mode.el: Extend treesit-sexp-type-regexp. (ruby-ts-mode): Add more node types to treesit-sexp-type-regexp. --- 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)