all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#5373: Example in font-lock-add-keywords should use shy subgroup
Date: Wed, 13 Jan 2010 11:26:03 +0100	[thread overview]
Message-ID: <e01d8a51001130226q3ff4fcf7o58df09068984f0be@mail.gmail.com> (raw)

Should not the second regexp in

 (font-lock-add-keywords 'c-mode
  '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)
    ("\\<\\(and\\|or\\|not\\)\\>" . font-lock-keyword-face)))

use a shy subgroup like in

 (font-lock-add-keywords 'c-mode
  '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)
    ("\\<\\(?:and\\|or\\|not\\)\\>" . font-lock-keyword-face)))



Same problem with the second example.






             reply	other threads:[~2010-01-13 10:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 10:26 Lennart Borgman [this message]
2010-01-13 15:18 ` bug#5373: Example in font-lock-add-keywords should use shy subgroup Stefan Monnier
2010-01-13 15:19   ` Lennart Borgman
2010-01-13 16:01     ` Chong Yidong
2010-01-13 16:08       ` Lennart Borgman
2010-01-13 18:58         ` bug#5373: Example in font-lock-add-keywords should use shy Stefan Monnier

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

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

  git send-email \
    --in-reply-to=e01d8a51001130226q3ff4fcf7o58df09068984f0be@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.