0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 22:37:47 +00:00

ol: Allow [[\\\\]] links

* lisp/ol.el (org-link-make-regexps): Allow [[\\\\]] links.
This commit is contained in:
Nicolas Goaziou 2019-08-20 14:24:38 +02:00
parent e48fac5231
commit f3474724ad

View file

@ -714,11 +714,12 @@ This should be called after the variable `org-link-parameters' has changed."
(rx (seq "[["
;; URI part: match group 1.
(group
(*? anything)
;; Allow an even number of backslashes right
;; before the closing bracket.
(not (any "\\"))
(zero-or-more "\\\\"))
(or (one-or-more "\\\\")
(and (*? anything)
(not (any "\\"))
(zero-or-more "\\\\"))))
"]"
;; Description (optional): match group 2.
(opt "[" (group (+? anything)) "]")