all messages for Emacs-related lists mirrored at yhetil.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 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.