help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

regexp match failure


From: sandro.dentella
Subject: regexp match failure
Date: 22 Nov 2006 06:46:33 -0800
User-agent: G2/1.0

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
*:-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]