unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5373: Example in font-lock-add-keywords should use shy subgroup
@ 2010-01-13 10:26 Lennart Borgman
  2010-01-13 15:18 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Lennart Borgman @ 2010-01-13 10:26 UTC (permalink / raw)
  To: emacs-pretest-bug

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.






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

end of thread, other threads:[~2010-01-13 18:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 10:26 bug#5373: Example in font-lock-add-keywords should use shy subgroup Lennart Borgman
2010-01-13 15:18 ` 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

Code repositories for project(s) associated with this public inbox

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

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