* How highlight 16 or more occurrences of same character?
@ 2010-09-13 8:49 Oleksandr Gavenko
2010-09-13 8:55 ` Deniz Dogan
0 siblings, 1 reply; 4+ messages in thread
From: Oleksandr Gavenko @ 2010-09-13 8:49 UTC (permalink / raw)
To: help-gnu-emacs
I use
(font-lock-add-keywords
'c-mode
'(
("\\(.\\)\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1" 0
'font-lock-warning-face t)
))
but don't know how make variable back links count.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How highlight 16 or more occurrences of same character?
2010-09-13 8:49 How highlight 16 or more occurrences of same character? Oleksandr Gavenko
@ 2010-09-13 8:55 ` Deniz Dogan
2010-09-13 11:20 ` Oleksandr Gavenko
0 siblings, 1 reply; 4+ messages in thread
From: Deniz Dogan @ 2010-09-13 8:55 UTC (permalink / raw)
To: Oleksandr Gavenko; +Cc: help-gnu-emacs
2010/9/13 Oleksandr Gavenko <gavenko@bifit.com.ua>:
> I use
>
> (font-lock-add-keywords
> 'c-mode
> '(
> ("\\(.\\)\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1" 0
> 'font-lock-warning-face t)
> ))
>
> but don't know how make variable back links count.
>
>
>
Haven't tested this, but it should be similar to my reply to your
other thread, with the added comma in {15,}...
(font-lock-add-keywords 'c-mode '(("\\(.\\)\\1\\{15,\\}" 0
'font-lock-warning-face t)))
--
Deniz Dogan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How highlight 16 or more occurrences of same character?
2010-09-13 8:55 ` Deniz Dogan
@ 2010-09-13 11:20 ` Oleksandr Gavenko
0 siblings, 0 replies; 4+ messages in thread
From: Oleksandr Gavenko @ 2010-09-13 11:20 UTC (permalink / raw)
To: help-gnu-emacs
On 13.09.2010 11:55, Deniz Dogan wrote:
> 2010/9/13 Oleksandr Gavenko<gavenko@bifit.com.ua>:
>> I use
>>
>> (font-lock-add-keywords
>> 'c-mode
>> '(
>> ("\\(.\\)\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1" 0
>> 'font-lock-warning-face t)
>> ))
>>
>> but don't know how make variable back links count.
>
> Haven't tested this, but it should be similar to my reply to your
> other thread, with the added comma in {15,}...
>
> (font-lock-add-keywords 'c-mode '(("\\(.\\)\\1\\{15,\\}" 0
> 'font-lock-warning-face t)))
>
Thanks for tip. It work!
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.11.1284367774.24995.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2010-09-13 11:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-13 8:49 How highlight 16 or more occurrences of same character? Oleksandr Gavenko
2010-09-13 8:55 ` Deniz Dogan
2010-09-13 11:20 ` Oleksandr Gavenko
[not found] <mailman.11.1284367774.24995.help-gnu-emacs@gnu.org>
2010-09-13 10:32 ` Stefan Monnier
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).