unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* regexp match failure
@ 2006-11-22 14:46 sandro.dentella
  2006-11-22 16:59 ` Kevin Rodgers
       [not found] ` <mailman.999.1164214909.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: sandro.dentella @ 2006-11-22 14:46 UTC (permalink / raw)


Hi,

  I can't understand wht's wrong with the following regexp:

(define-derived-mode mutt-mode text-mode "Mutt"
  (make-face 'mutt-variable-face)
  (font-lock-add-keywords
   nil
   '(
    ("^\\(Date\\|Status:\\)" 1 font-lock-keyword-face)
    ("^\\(\\S+:\\)" 1 font-lock-keyword-face)
  ))
  (font-lock-mode 1)
)

The first ine works, it colors Date: and Status:, the second line
should in my opinion be just a generalized version of the first line
but it does not work. BTW, i'd have written:

  "^[-\\S]+:"

but it doens't work eather. Can anybody explain me what I'm missing?

Thanks
sandro
*:-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-22 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-22 14:46 regexp match failure sandro.dentella
2006-11-22 16:59 ` Kevin Rodgers
     [not found] ` <mailman.999.1164214909.2155.help-gnu-emacs@gnu.org>
2006-11-22 18:50   ` sandro.dentella

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).