all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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?
       [not found] <mailman.11.1284367774.24995.help-gnu-emacs@gnu.org>
@ 2010-09-13 10:32 ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2010-09-13 10:32 UTC (permalink / raw)
  To: help-gnu-emacs

>    ("\\(.\\)\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1\\1"

You should be able to use "\\(.\\)\\1\\{15\\}"


        Stefan


^ 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

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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.