X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/5dc644a6b01e2cf950ff617ab15be4bf1917c38c..19532d147b431a4fe34f088d6de07891c48e2c5c:/lisp/font-lock.el diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 5f12c6c129..b74b60341b 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -683,9 +683,9 @@ end of the current highlighting list. For example: - (font-lock-add-keywords 'c-mode - '((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 'font-lock-warning-face prepend) - (\"\\\\\\=<\\\\(and\\\\|or\\\\|not\\\\)\\\\\\=>\" . 'font-lock-keyword-face))) + (font-lock-add-keywords \\='c-mode + \\='((\"\\\\\\=<\\\\(FIXME\\\\):\" 1 \\='font-lock-warning-face prepend) + (\"\\\\\\=<\\\\(and\\\\|or\\\\|not\\\\)\\\\\\=>\" . \\='font-lock-keyword-face))) adds two fontification patterns for C mode, to fontify `FIXME:' words, even in comments, and to fontify `and', `or' and `not' words as keywords.