bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5373: Example in font-lock-add-keywords should use shy subgroup


From: Lennart Borgman
Subject: bug#5373: Example in font-lock-add-keywords should use shy subgroup
Date: Wed, 13 Jan 2010 16:19:33 +0100

On Wed, Jan 13, 2010 at 4:18 PM, Stefan Monnier
<address@hidden> wrote:
>> 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.


I thought it was slower?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]