Add escaping for ::

This commit is contained in:
Igarashi Masanao
2018-02-22 22:33:28 +09:00
parent 905825229c
commit 313640ac94

View File

@@ -1074,6 +1074,8 @@ contextual information."
(setq text (replace-regexp-in-string "[`*_\\]" "\\\\\\&" text))
;; Protect ..
(setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\\\&" text))
;; Protect ::
(setq text (replace-regexp-in-string "::" "\\\\:\\\\:" text))
;; Return value.
text)