branch: elpa/smartparens
commit 4e3ca735aadc570a5b4b456519000d6048785bf4
Author: Daniel Ma <[email protected]>
Commit: GitHub <[email protected]>
Support `ruby-ts-mode`
As of Emacs 29, `ruby-mode` and `ruby-ts-mode` are derived from
`ruby-base-mode`. Have smartparens define behavior from the base mode to work
with both
---
smartparens-ruby.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/smartparens-ruby.el b/smartparens-ruby.el
index 237eea9022..31c7d80877 100644
--- a/smartparens-ruby.el
+++ b/smartparens-ruby.el
@@ -293,12 +293,12 @@ MS, ME, MB."
(sp-ruby-method-p "end"))))
(add-to-list 'sp-navigate-skip-match
- '((ruby-mode enh-ruby-mode motion-mode) . sp--ruby-skip-match))
+ '((ruby-base-mode enh-ruby-mode motion-mode) .
sp--ruby-skip-match))
-(dolist (mode '(ruby-mode motion-mode))
+(dolist (mode '(ruby-base-mode motion-mode))
(add-to-list 'sp-sexp-suffix `(,mode syntax "")))
-(sp-with-modes '(ruby-mode enh-ruby-mode motion-mode)
+(sp-with-modes '(ruby-base-mode enh-ruby-mode motion-mode)
(sp-local-pair "do" "end"
:when '(("SPC" "RET" "<evil-ret>"))
:unless '(sp-ruby-in-string-or-word-p sp-in-comment-p)