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

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

Re: How highlight 16 or more occurrences of same character?


From: Deniz Dogan
Subject: Re: How highlight 16 or more occurrences of same character?
Date: Mon, 13 Sep 2010 10:55:23 +0200

2010/9/13 Oleksandr Gavenko <address@hidden>:
> 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



reply via email to

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