Skip to content

Commit

Permalink
Merge pull request #1162 from danielma/patch-1
Browse files Browse the repository at this point in the history
Support `ruby-ts-mode`
  • Loading branch information
Fuco1 authored Oct 20, 2023
2 parents 3afd9af + 7ccf5c7 commit 17c2e65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smartparens-ruby.el
Original file line number Diff line number Diff line change
Expand Up @@ -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-mode ruby-ts-mode enh-ruby-mode motion-mode) . sp--ruby-skip-match))

(dolist (mode '(ruby-mode motion-mode))
(dolist (mode '(ruby-mode ruby-ts-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)
Expand Down

0 comments on commit 17c2e65

Please sign in to comment.