feat(language/ruby): switch to ruby-ts-mode

This commit is contained in:
Jim Myhrberg
2024-10-18 12:53:28 +01:00
parent b3a998a83f
commit 3cae3d93bf
3 changed files with 82 additions and 22 deletions

View File

@@ -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 " {".