mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(language/ruby): switch to ruby-ts-mode
This commit is contained in:
@@ -85,6 +85,10 @@
|
||||
:replace "\\1")
|
||||
(:match "\\`\s*do\\( |.+|\\)?\\'"
|
||||
:before "\n" :after "\nend")))
|
||||
(ruby-ts-mode . ((:match "\\([^\s]+\s+\\)do\\(?: |.+|\\)?\\'"
|
||||
:replace "\\1")
|
||||
(:match "\\`\s*do\\( |.+|\\)?\\'"
|
||||
:before "\n" :after "\nend")))
|
||||
(t . (;; Strip opening "{" from end of completion.
|
||||
(:match "\\([^\s]+\s*\\)\{\\'" :replace "\\1")
|
||||
;; Inject closing "}" on newline if completion is only "{" or " {".
|
||||
|
||||
Reference in New Issue
Block a user