branch: elpa/smartparens commit 3ee3baf41f0e74371bea8fa3a1766903ca2f8f53 Author: Sangwoo Joh <work.sangwoo....@gmail.com> Commit: GitHub <nore...@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 ""))