lang/swift: add pair rule for string interpolation
This commit is contained in:
parent
0252f4f36f
commit
c690ed600a
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@
|
||||||
:pre-handlers '(:rem sp-ruby-pre-handler)
|
:pre-handlers '(:rem sp-ruby-pre-handler)
|
||||||
:post-handlers '(:rem sp-ruby-post-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
|
;; 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)
|
(sp-local-pair '(emacs-lisp-mode org-mode markdown-mode gfm-mode)
|
||||||
"[" nil :post-handlers '(:rem ("| " "SPC")))
|
"[" nil :post-handlers '(:rem ("| " "SPC")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue