diff options
| author | Lars Ingebrigtsen | 2019-10-30 21:06:47 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-30 21:06:47 +0100 |
| commit | b21ea56edc38112f5ae71d67f335a93b4cc8e3e9 (patch) | |
| tree | 4a9301c4319a85b988b1ead6035df1acbd8bec82 | |
| parent | 4650aa3523068b83c3d9e6276fe89eb3955ca1e3 (diff) | |
| download | emacs-b21ea56edc38112f5ae71d67f335a93b4cc8e3e9.tar.gz emacs-b21ea56edc38112f5ae71d67f335a93b4cc8e3e9.zip | |
Tweak fontification of \url{http://foo.org/bar%zot} in (la)tex-mode
* 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).
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index f277defecfd..3d7cc62e265 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -546,7 +546,7 @@ An alternative value is \" . \", if you use a font with a narrow period." | |||
| 546 | ;; Include args. | 546 | ;; Include args. |
| 547 | (,(concat slash includes opt arg) 3 font-lock-builtin-face) | 547 | (,(concat slash includes opt arg) 3 font-lock-builtin-face) |
| 548 | ;; Verbatim-like args. | 548 | ;; Verbatim-like args. |
| 549 | (,(concat slash verbish opt arg) 3 'tex-verbatim) | 549 | (,(concat slash verbish opt arg) 3 'tex-verbatim t) |
| 550 | ;; Definitions. I think. | 550 | ;; Definitions. I think. |
| 551 | ("^[ \t]*\\\\def *\\\\\\(\\(\\w\\|@\\)+\\)" | 551 | ("^[ \t]*\\\\def *\\\\\\(\\(\\w\\|@\\)+\\)" |
| 552 | 1 font-lock-function-name-face)))) | 552 | 1 font-lock-function-name-face)))) |