]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-ts-mode.el: Extend treesit-sexp-type-regexp.
authorJuri Linkov <juri@linkov.net>
Wed, 1 Feb 2023 18:14:06 +0000 (20:14 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 1 Feb 2023 18:14:06 +0000 (20:14 +0200)
(ruby-ts-mode): Add more node types to treesit-sexp-type-regexp.

lisp/progmodes/ruby-ts-mode.el

index 1144caf79b6443e98d11a8761a006adee7b392cf..9fc0c360a2a71ff0108a498a61dade1cab06baee 100644 (file)
@@ -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)