emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/smartparens 4e3ca735aa 02/12: Support `ruby-ts-mode`


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens 4e3ca735aa 02/12: Support `ruby-ts-mode`
Date: Fri, 20 Oct 2023 13:02:09 -0400 (EDT)

branch: elpa/smartparens
commit 4e3ca735aadc570a5b4b456519000d6048785bf4
Author: Daniel Ma <drailskid@gmail.com>
Commit: GitHub <noreply@github.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]