unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Oleksandr Gavenko <gavenko@bifit.com.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: How highlight 16 or more occurrences of same character?
Date: Mon, 13 Sep 2010 14:20:21 +0300	[thread overview]
Message-ID: <i6l1d8$p1a$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTin31OtXFeUKYg25RivL8Q4Dm6Wxvn=3t5pX7xNr@mail.gmail.com>

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	other threads:[~2010-09-13 11:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [not found] <mailman.11.1284367774.24995.help-gnu-emacs@gnu.org>
2010-09-13 10:32 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='i6l1d8$p1a$1@dough.gmane.org' \
    --to=gavenko@bifit.com.ua \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).