emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/smartparens 3ee3baf41f 2/3: Add more pairs for OCaml (#111


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens 3ee3baf41f 2/3: Add more pairs for OCaml (#1118)
Date: Tue, 10 May 2022 04:58:52 -0400 (EDT)

branch: elpa/smartparens
commit 3ee3baf41f0e74371bea8fa3a1766903ca2f8f53
Author: Sangwoo Joh <work.sangwoo.joh@gmail.com>
Commit: GitHub <noreply@github.com>

    Add more pairs for OCaml (#1118)
---
 smartparens-ml.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/smartparens-ml.el b/smartparens-ml.el
index 7960c5f13d..ee066debf4 100644
--- a/smartparens-ml.el
+++ b/smartparens-ml.el
@@ -60,7 +60,11 @@
   (sp-local-pair "`" nil :actions nil)
   ;; Disable ' because it is used in value names and types
   (sp-local-pair "'" nil :actions nil)
-  (sp-local-pair "(*" "*)" ))
+  (sp-local-pair "{|" "|}" )      ;; multi-line string
+  (sp-local-pair "[|" "|]" )      ;; array
+  (sp-local-pair "sig" "end" )    ;; signature
+  (sp-local-pair "module" "end" ) ;; module
+  (sp-local-pair "(*" "*)" ))     ;; comment
 
 ;; Ignore punctuation, so we can split ~(foo) to ~foo.
 (add-to-list 'sp-sexp-prefix (list 'tuareg-mode 'syntax ""))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]