lang/swift: add pair rule for string interpolation

This commit is contained in:
Henrik Lissner 2020-05-25 02:23:58 -04:00
parent 0252f4f36f
commit c690ed600a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -111,6 +111,9 @@
:pre-handlers '(:rem sp-ruby-pre-handler)
:post-handlers '(:rem sp-ruby-post-handler))
;; Don't eagerly escape Swift style string interpolation
(sp-local-pair 'swift-mode "\\(" ")" :when '(sp-in-string-p))
;; Don't do square-bracket space-expansion where it doesn't make sense to
(sp-local-pair '(emacs-lisp-mode org-mode markdown-mode gfm-mode)
"[" nil :post-handlers '(:rem ("| " "SPC")))