|
From: | Stefan Monnier |
Subject: | bug#5373: Example in font-lock-add-keywords should use shy subgroup |
Date: | Wed, 13 Jan 2010 10:18:08 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) |
> 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))) It could. But the use of a normal group is harmless. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |