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

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

Re: How (efficient) highlight occurrence of 16 same chars?


From: Oleksandr Gavenko
Subject: Re: How (efficient) highlight occurrence of 16 same chars?
Date: Mon, 13 Sep 2010 11:19:57 +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:13, Oleksandr Gavenko wrote:
This code not work:

(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)
))

I think back reference not worked.

Oh! I forget that \\(.\\) also take in count. So match 17 not 16.




reply via email to

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