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: Oleksandr Gavenko
Subject: Re: How highlight 16 or more occurrences of same character?
Date: Mon, 13 Sep 2010 14:20:21 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3

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!




reply via email to

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