]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak fontification of \url{http://foo.org/bar%zot} in (la)tex-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 20:06:47 +0000 (21:06 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 20:06:47 +0000 (21:06 +0100)
* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1):
\url{http://foo.org/bar%zot} shouldn't be fontified as having a
comment, so make the tex-verbatim face overwrite the
already-applied syntactical comment bits (bug#37134).

lisp/textmodes/tex-mode.el

index f277defecfd05fc8b6494da6eec105cc98965dc6..3d7cc62e265b5f10e5d783f3198c3fd50ac08fc2 100644 (file)
@@ -546,7 +546,7 @@ An alternative value is \" . \", if you use a font with a narrow period."
         ;; Include args.
         (,(concat slash includes opt arg) 3 font-lock-builtin-face)
         ;; Verbatim-like args.
-        (,(concat slash verbish opt arg) 3 'tex-verbatim)
+        (,(concat slash verbish opt arg) 3 'tex-verbatim t)
         ;; Definitions.  I think.
         ("^[ \t]*\\\\def *\\\\\\(\\(\\w\\|@\\)+\\)"
         1 font-lock-function-name-face))))