"Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
wrote on 01/18/2008 03:16:02 PM:
| > That's quite alright, you have any idea why one works and the other
| > doesn't? After playing around a bit, the two '*' in a row
seem to cause
| > it to fail?
|
| Fontification is quite tricky, especially the comments. It looks like
a
| bug too me. If you are using a recent Emacs then you should perhaps file
| a bug report?
Not a problem, as long as someone can verify my syntax
is OK. Here's the snippet again:
(setq font-lock-todo-face (make-face 'font-lock-todo-face))
(set-face-foreground 'font-lock-todo-face "Red")
(set-face-background 'font-lock-todo-face "Yellow")
(font-lock-add-keywords 'jde-mode
'(("\\<\\(TODO:.*$\\)" 1 font-lock-todo-face
prepend)))
Jeff