[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 9b5e9715ea: ; * lisp/font-lock.el (font-lock-keywords): Doc fix
From: |
Eli Zaretskii |
Subject: |
emacs-28 9b5e9715ea: ; * lisp/font-lock.el (font-lock-keywords): Doc fix. |
Date: |
Sat, 2 Apr 2022 06:21:22 -0400 (EDT) |
branch: emacs-28
commit 9b5e9715ea64f971e215e91898e3ef49b159cdbe
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * lisp/font-lock.el (font-lock-keywords): Doc fix.
---
lisp/font-lock.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 7d264cf982..c9c390840f 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -349,7 +349,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
@@ -374,10 +374,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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 9b5e9715ea: ; * lisp/font-lock.el (font-lock-keywords): Doc fix.,
Eli Zaretskii <=