unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "sandro.dentella" <sandro@e-den.it>
Subject: regexp match failure
Date: 22 Nov 2006 06:46:33 -0800	[thread overview]
Message-ID: <1164206793.546304.289140@m7g2000cwm.googlegroups.com> (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
*:-)

             reply	other threads:[~2006-11-22 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-22 14:46 sandro.dentella [this message]
2006-11-22 16:59 ` regexp match failure Kevin Rodgers
     [not found] ` <mailman.999.1164214909.2155.help-gnu-emacs@gnu.org>
2006-11-22 18:50   ` sandro.dentella

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=1164206793.546304.289140@m7g2000cwm.googlegroups.com \
    --to=sandro@e-den.it \
    /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).