unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: JRancier@penntraffic.com
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: fontification question
Date: Fri, 18 Jan 2008 14:57:34 -0500	[thread overview]
Message-ID: <OFBD5AE305.65BB4D13-ON852573D4.006D8AED-852573D4.006DA48A@penntraffic.com> (raw)
In-Reply-To: <4790FF74.3050601@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1525 bytes --]

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote on 01/18/2008 
02:35:16 PM:

| JRancier@penntraffic.com wrote:
| > 
| > "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> 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?

[-- Attachment #1.2: Type: text/html, Size: 2277 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

       reply	other threads:[~2008-01-18 19:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4790FF74.3050601@gmail.com>
2008-01-18 19:57 ` JRancier [this message]
2008-01-18 20:16   ` fontification question Lennart Borgman (gmail)
2008-01-18 20:23     ` JRancier
2008-01-17 20:14 JRancier
2008-01-17 22:51 ` Lennart Borgman (gmail)
2008-01-18 13:34   ` JRancier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFBD5AE305.65BB4D13-ON852573D4.006D8AED-852573D4.006DA48A@penntraffic.com \
    --to=jrancier@penntraffic.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).