]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bibtex-font-lock-url-regexp
authorRoland Winkler <winkler@gnu.org>
Wed, 23 Aug 2023 02:42:49 +0000 (21:42 -0500)
committerRoland Winkler <winkler@gnu.org>
Wed, 23 Aug 2023 02:42:49 +0000 (21:42 -0500)
Fix bibtex-font-lock-url-regexp to allow line breaks
between the field name and the field string.

lisp/textmodes/bibtex.el

index 394f80f47eeb872d62f66b4af50139b457ccd922..32d2786b86cdfe63a2a7ce837301f183d1dbbad5 100644 (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