]> git.eshelyaron.com Git - emacs.git/commitdiff
(ruby-ts-mode): Extend treesit-thing-settings (bug#67036)
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 26 Nov 2023 15:35:06 +0000 (17:35 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Sun, 26 Nov 2023 15:35:06 +0000 (17:35 +0200)
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode): Add to
'treesit-thing-settings': 'singleton_class', 'else' and 'then'.
The latter two help with navigation across elseif's a little, but
not quite perfectly.

lisp/progmodes/ruby-ts-mode.el

index 4f85e1c63ff3a07e550fc8ca1ff922e3f1e80907..5456868f55a74b8daee228a8a32b08797606bf83 100644 (file)
@@ -1128,6 +1128,7 @@ leading double colon is not added."
                                bol
                                (or
                                 "class"
+                                "singleton_class"
                                 "module"
                                 "method"
                                 "array"
@@ -1137,6 +1138,8 @@ leading double colon is not added."
                                 "array_pattern"
                                 "hash_pattern"
                                 "if"
+                                "else"
+                                "then"
                                 "unless"
                                 "case"
                                 "case_match"