Fix bibtex-font-lock-url-regexp

Fix bibtex-font-lock-url-regexp to allow line breaks
between the field name and the field string.
This commit is contained in:
Roland Winkler 2023-08-22 21:42:49 -05:00
parent 8933c1877d
commit 45555c1b78

View file

@ -1845,7 +1845,7 @@ Initialized by `bibtex-set-dialect'.")
;; Assume that field names begin at the beginning of a line.
(concat "^[ \t]*"
(regexp-opt (delete-dups (mapcar #'caar bibtex-generate-url-list)) t)
"[ \t]*=[ \t]*")
"[ \t\n]*=[ \t\n]*")
"Regexp for `bibtex-font-lock-url' derived from `bibtex-generate-url-list'.")
(defvar bibtex-string-empty-key nil