summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-04-13 16:52:50 +0300
committerEli Zaretskii <eliz@gnu.org>2022-04-13 16:52:50 +0300
commit5a14406ecfbd1efd03a00c49a84c19d31bb77f48 (patch)
tree0ef3345816636a1530806b2585ba1f40c30c84de /lisp/font-lock.el
parentbe42fdc6dc60bec1d14065d04dc43b693398c591 (diff)
parentf2ae39829812098d8269eafbc0fcb98959ee5bb7 (diff)
downloademacs-5a14406ecfbd1efd03a00c49a84c19d31bb77f48.tar.gz
emacs-5a14406ecfbd1efd03a00c49a84c19d31bb77f48.tar.bz2
emacs-5a14406ecfbd1efd03a00c49a84c19d31bb77f48.zip
Merge from origin/emacs-28
# Conflicts: # etc/NEWS # lisp/desktop.el # lisp/dired.el
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 5034c98d26e..488874a1755 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -391,7 +391,7 @@ This can be an \"!\" or the \"n\" in \"ifndef\".")
;; Fontification variables:
(defvar font-lock-keywords nil
- "A list of the keywords to highlight.
+ "A list of keywords and corresponding font-lock highlighting rules.
There are two kinds of values: user-level, and compiled.
A user-level keywords list is what a major mode or the user would
@@ -416,10 +416,10 @@ point, and set `match-data' appropriately if it succeeds; like
`re-search-forward' would). MATCHER regexps can be generated via
the function `regexp-opt'.
-FORM is an expression, whose value should be a keyword element,
-evaluated when the keyword is (first) used in a buffer. This
-feature can be used to provide a keyword that can only be
-generated when Font Lock mode is actually turned on.
+FORM is an expression, whose value should be a keyword element
+of one of the above forms, evaluated when the keyword is (first)
+used in a buffer. This feature can be used to provide a keyword
+that can only be generated when Font Lock mode is actually turned on.
HIGHLIGHT should be either MATCH-HIGHLIGHT or MATCH-ANCHORED.