[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How (efficient) highlight occurrence of 16 same chars?
From: |
Deniz Dogan |
Subject: |
Re: How (efficient) highlight occurrence of 16 same chars? |
Date: |
Mon, 13 Sep 2010 10:54:19 +0200 |
2010/9/13 Oleksandr Gavenko <gavenko@bifit.com.ua>:
> 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.
>
>
>
This seems to work for me:
(font-lock-add-keywords 'c-mode '(("\\(.\\)\\1\\{15\\}" 0
'font-lock-warning-face t)))
--
Deniz Dogan