diff options
| author | Daniel Pfeiffer | 2005-05-05 19:01:39 +0000 |
|---|---|---|
| committer | Daniel Pfeiffer | 2005-05-05 19:01:39 +0000 |
| commit | 5d27cf9f35064c6472b29eec3aa747f315bf167e (patch) | |
| tree | 5805499c945cd12db1b84de118aa106d59e857da /lisp | |
| parent | 921a94830b843a73f6abbe666aa9b57728191f40 (diff) | |
| download | emacs-5d27cf9f35064c6472b29eec3aa747f315bf167e.tar.gz emacs-5d27cf9f35064c6472b29eec3aa747f315bf167e.zip | |
(font-lock-negation-char-face): New face and variable.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/font-lock.el | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 19a5f6a2f4b..2121bde8e49 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -339,6 +339,10 @@ If a number, only buffers greater than this size have fontification messages." | |||
| 339 | (defvar font-lock-warning-face 'font-lock-warning-face | 339 | (defvar font-lock-warning-face 'font-lock-warning-face |
| 340 | "Face name to use for things that should stand out.") | 340 | "Face name to use for things that should stand out.") |
| 341 | 341 | ||
| 342 | (defvar font-lock-negation-char-face 'font-lock-negation-char-face | ||
| 343 | "Face name to use for easy to overlook negation. | ||
| 344 | This can be an \"!\" or the \"n\" in \"ifndef\".") | ||
| 345 | |||
| 342 | (defvar font-lock-preprocessor-face 'font-lock-preprocessor-face | 346 | (defvar font-lock-preprocessor-face 'font-lock-preprocessor-face |
| 343 | "Face name to use for preprocessor directives.") | 347 | "Face name to use for preprocessor directives.") |
| 344 | 348 | ||
| @@ -386,7 +390,7 @@ word \"bar\" following the word \"anchor\" then MATCH-ANCHORED may be required. | |||
| 386 | 390 | ||
| 387 | MATCH-HIGHLIGHT should be of the form: | 391 | MATCH-HIGHLIGHT should be of the form: |
| 388 | 392 | ||
| 389 | (MATCH FACENAME [[OVERRIDE [LAXMATCH]]) | 393 | (MATCH FACENAME [OVERRIDE [LAXMATCH]]) |
| 390 | 394 | ||
| 391 | MATCH is the subexpression of MATCHER to be highlighted. FACENAME is an | 395 | MATCH is the subexpression of MATCHER to be highlighted. FACENAME is an |
| 392 | expression whose value is the face name to use. Face default attributes | 396 | expression whose value is the face name to use. Face default attributes |
| @@ -1761,6 +1765,16 @@ Sets various variables using `font-lock-defaults' (or, if nil, using | |||
| 1761 | "Font Lock mode face used to highlight warnings." | 1765 | "Font Lock mode face used to highlight warnings." |
| 1762 | :group 'font-lock-highlighting-faces) | 1766 | :group 'font-lock-highlighting-faces) |
| 1763 | 1767 | ||
| 1768 | ;; Matches font-lock-builtin-face, because that is used for #ifndef and | ||
| 1769 | ;; font-lock-keyword-face, which alas make-mode uses for ifndef | ||
| 1770 | (defface font-lock-negation-char-face | ||
| 1771 | '((((class color) (min-colors 88) (background light)) (:foreground "VioletRed" :weight bold)) | ||
| 1772 | (((class color) (min-colors 88) (background dark)) (:foreground "MediumOrchid1" :weight bold)) | ||
| 1773 | (((class color) (min-colors 8)) (:foreground "red" :weight bold)) | ||
| 1774 | (t (:inverse-video t :weight bold))) | ||
| 1775 | "Font Lock mode face used to highlight easy to overlook negation." | ||
| 1776 | :group 'font-lock-highlighting-faces) | ||
| 1777 | |||
| 1764 | (defface font-lock-preprocessor-face | 1778 | (defface font-lock-preprocessor-face |
| 1765 | '((t :inherit font-lock-builtin-face)) | 1779 | '((t :inherit font-lock-builtin-face)) |
| 1766 | "Font Lock mode face used to highlight preprocessor directives." | 1780 | "Font Lock mode face used to highlight preprocessor directives." |