"Lennart Borgman (gmail)" wrote on 01/18/2008 02:35:16 PM: | JRancier@penntraffic.com wrote: | > | > "Lennart Borgman (gmail)" wrote on | > 01/17/2008 05:51:49 PM: | > | > | JRancier@penntraffic.com wrote: | > | > | > | > Given the following code: | > | > | > | > (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))) | > | > | > | > Can anyone tell me why the following is correctly fontified (in | > jde-mode): | > | > | > | > /* | > | > * | > | > * TODO: REMOVE DEBUG STATEMENTS | > | > * | > | > */ | > | > | > | > And this isn't? | > | > | > | > /** 01-17-08 jbr | > | > * | > | > * TODO: REMOVE DEBUG STATEMENTS | > | > * | > | > */ | > | > | > | > TIA, | > | > Jeff | > | | > | | > | I am surprised that the first one works. Should it really do that? | > | > It does. Can you clue me into why is 'shouldn't' work? The interesting | > thing is that in lisp-mode and c-mode, it seems to always work fine ... ??? | | | I must have done something stupid, please ignore my answer. 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?