[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2ec4526b972: (ruby-ts-mode): Extend treesit-thing-settings (bug#6
From: |
Dmitry Gutov |
Subject: |
master 2ec4526b972: (ruby-ts-mode): Extend treesit-thing-settings (bug#67036) |
Date: |
Sun, 26 Nov 2023 10:37:02 -0500 (EST) |
branch: master
commit 2ec4526b9722fe4c55285ae5c643c9fe0e248ffc
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
(ruby-ts-mode): Extend treesit-thing-settings (bug#67036)
* 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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index 4f85e1c63ff..5456868f55a 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -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"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2ec4526b972: (ruby-ts-mode): Extend treesit-thing-settings (bug#67036),
Dmitry Gutov <=