aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-04-11 08:02:51 +0000
committerEli Zaretskii2001-04-11 08:02:51 +0000
commite38af9bd2d67f25fb569ae40f199a154993f9088 (patch)
treea35b344aee96b9c0f9bdee50460d591bdf8a847b
parent60f8d73535346769b3dd7b5332864a220012d6d5 (diff)
downloademacs-e38af9bd2d67f25fb569ae40f199a154993f9088.tar.gz
emacs-e38af9bd2d67f25fb569ae40f199a154993f9088.zip
(texinfo-font-lock-keywords): Add
fontification for @value, @dfn, @dmn, @acronym, @anchor, and @inforef. Add an OVERRIDE of `keep' to highlight specs of keywords whose arguments routinely include @@.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/textmodes/texinfo.el14
2 files changed, 18 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 361f7af8b59..9e7c4fbe93a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12001-04-11 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * textmodes/texinfo.el (texinfo-font-lock-keywords): Add
4 fontification for @value, @dfn, @dmn, @acronym, @anchor, and
5 @inforef. Add an OVERRIDE of `keep' to highlight specs of
6 keywords whose arguments routinely include @@.
7
12001-04-10 Gerd Moellmann <gerd@gnu.org> 82001-04-10 Gerd Moellmann <gerd@gnu.org>
2 9
3 * emacs-lisp/advice.el (ad-make-advised-definition): Construct 10 * emacs-lisp/advice.el (ad-make-advised-definition): Construct
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index 1dcae0b1d40..fdd6faea848 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -323,10 +323,18 @@ chapter."
323 ("@\\([a-zA-Z]+\\|[^ \t\n]\\)" 1 font-lock-keyword-face) ;commands 323 ("@\\([a-zA-Z]+\\|[^ \t\n]\\)" 1 font-lock-keyword-face) ;commands
324 ("^\\*\\(.*\\)[\t ]*$" 1 font-lock-function-name-face t) ;menu items 324 ("^\\*\\(.*\\)[\t ]*$" 1 font-lock-function-name-face t) ;menu items
325 ("@\\(emph\\|strong\\|b\\|i\\|sc\\){\\([^}]+\\)" 2 font-lock-comment-face) 325 ("@\\(emph\\|strong\\|b\\|i\\|sc\\){\\([^}]+\\)" 2 font-lock-comment-face)
326 ("@\\(file\\|kbd\\|key\\|url\\|uref\\|email\\){\\([^}]+\\)" 2 font-lock-string-face) 326 ("@\\(kbd\\|key\\|url\\|uref\\){\\([^}]+\\)"
327 2 font-lock-string-face)
328 ;; The following two groups have an OVERRIDE of `keep' because
329 ;; their arguments frequently include a @@, and we don't want that
330 ;; to overwrite the normal fontification of the argument.
331 ("@\\(file\\|email\\){\\([^}]+\\)" 2 font-lock-string-face keep)
327 ("@\\(samp\\|code\\|var\\|math\\|env\\|command\\|option\\){\\([^}]+\\)" 332 ("@\\(samp\\|code\\|var\\|math\\|env\\|command\\|option\\){\\([^}]+\\)"
328 2 font-lock-variable-name-face) 333 2 font-lock-variable-name-face keep)
329 ("@\\(cite\\|[ux]?ref\\|pxref\\){\\([^}]+\\)" 2 font-lock-constant-face) 334 ("@\\(cite\\|x?ref\\|pxref\\|dfn\\|inforef\\){\\([^}]+\\)"
335 2 font-lock-constant-face)
336 ("@\\(anchor\\){\\([^}]+\\)" 2 font-lock-type-face)
337 ("@\\(dmn\\|acronym\\|value\\){\\([^}]+\\)" 2 font-lock-builtin-face)
330 ("@\\(end\\|itemx?\\) +\\(.+\\)" 2 font-lock-function-name-face keep) 338 ("@\\(end\\|itemx?\\) +\\(.+\\)" 2 font-lock-function-name-face keep)
331 (,(concat "^@" (regexp-opt (mapcar 'car texinfo-section-list) t) 339 (,(concat "^@" (regexp-opt (mapcar 'car texinfo-section-list) t)
332 ".*\n") 0 texinfo-heading-face t)) 340 ".*\n") 0 texinfo-heading-face t))