[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/caml ff4b9e8 043/197: gestion des commentaires de doc
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/caml ff4b9e8 043/197: gestion des commentaires de doc |
Date: |
Sat, 21 Nov 2020 01:19:34 -0500 (EST) |
branch: externals/caml
commit ff4b9e83f952693e50ab3be89ea8aa1e9b56dc90
Author: Maxence Guesdon <maxence.guesdon@inria.fr>
Commit: Maxence Guesdon <maxence.guesdon@inria.fr>
gestion des commentaires de doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4131
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
caml-font.el | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/caml-font.el b/caml-font.el
index 9061056..61968eb 100644
--- a/caml-font.el
+++ b/caml-font.el
@@ -1,8 +1,9 @@
;; useful colors
(cond
- ((and (x-display-color-p)
- (not (memq 'font-lock-type-face (face-list))))
+ ((x-display-color-p)
+;
+; (not (memq 'font-lock-type-face (face-list))))
; make the necessary faces
(make-face 'Firebrick)
(set-face-foreground 'Firebrick "Firebrick")
@@ -18,6 +19,11 @@
(set-face-foreground 'DarkOliveGreen "DarkOliveGreen4")
(make-face 'CadetBlue)
(set-face-foreground 'CadetBlue "CadetBlue")
+ (make-face 'Stop)
+ (set-face-foreground 'Stop "White")
+ (set-face-background 'Stop "Red")
+ (make-face 'Doc)
+ (set-face-foreground 'Doc "Red")
; assign them as standard faces
(setq font-lock-comment-face 'Firebrick)
(setq font-lock-string-face 'RosyBrown)
@@ -25,7 +31,10 @@
(setq font-lock-function-name-face 'MidnightBlue)
(setq font-lock-variable-name-face 'DarkGoldenRod)
(setq font-lock-type-face 'DarkOliveGreen)
- (setq font-lock-reference-face 'CadetBlue)))
+ (setq font-lock-reference-face 'CadetBlue)
+ (setq font-lock-stop-face 'Stop)
+ (setq font-lock-doccomment-face 'Doc)
+))
; The same definition is in caml.el:
; we don't know in which order they will be loaded.
@@ -34,6 +43,12 @@
(defconst caml-font-lock-keywords
(list
+;stop special comments
+ '("\\(^\\|[^\"]\\)\\((\\*\\*/\\*\\*)\\)"
+ 2 font-lock-stop-face)
+;doccomments
+ '("\\(^\\|[^\"]\\)\\((\\*\\*[^*]*\\([^)*][^*]*\\*+\\)*)\\)"
+ 2 font-lock-doccomment-face)
;comments
'("\\(^\\|[^\"]\\)\\((\\*[^*]*\\*+\\([^)*][^*]*\\*+\\)*)\\)"
2 font-lock-comment-face)
- [nongnu] externals/caml 2eeca2e 039/197: xemacs keybind (PR#631), (continued)
- [nongnu] externals/caml 2eeca2e 039/197: xemacs keybind (PR#631), Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 39cfb2e 049/197: define only if needed, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 9d5668c 051/197: fix caml-help, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml d2f1cc7 052/197: better interaction with toplevel, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 495ee65 053/197: caml-find-phrase, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 9b77f6d 054/197: spurious newline, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 28d1a1d 033/197: indentation of else, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 1652c4e 035/197: detabisation, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml d75a12b 038/197: process ;; correctly, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 2f6c6ce 042/197: Changement du mode inf-caml, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml ff4b9e8 043/197: gestion des commentaires de doc,
Stefan Monnier <=
- [nongnu] externals/caml bf92fed 010/197: Creer EMACSDIR si non existant, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 8457cf2 019/197: Manque un quote, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 5a9f7c6 026/197: tabs -> spaces, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 8364471 027/197: changed label_pattern syntax, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 97c1bb7 037/197: highlight ignore, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 32f0f75 056/197: Updated caml-help.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 1a97395 057/197: detabisation, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 758702f 060/197: Several bug fixes and improvements in caml-help., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml bb899a1 069/197: amelioration des locations, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml e149514 072/197: PR#1704, Stefan Monnier, 2020/11/21