From: Joost Kremers <joostkremers@fastmail.fm>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Font lock question
Date: Wed, 17 Mar 2021 17:09:41 +0100 [thread overview]
Message-ID: <87o8fhwyai.fsf@fastmail.fm> (raw)
In-Reply-To: <jwvsg4tiyt6.fsf-monnier+emacs@gnu.org>
On Wed, Mar 17 2021, Stefan Monnier wrote:
> Indeed that won't do what you want. You're going to have to either
> manually loop through all the matches of of aBc within the brackets, or
> use font-lock-keywords's `MATCH-ANCHORED` to do that for you.
Yes, I was afraid of that. I haven't quite figured out how that works... :D I'll
need to find some time to dive into font-lock a bit more.
> But be aware that these approaches still won't work well if the [...]
> thing can span multiple lines.
Hmm, I'm afraid that is indeed possible. Perhaps I'll keep it simple and only
font-lock the `B` part, since it can't contain any spaces and is fairly easy to
do.
Thanks for your reply.
--
Joost Kremers
Life has its moments
next prev parent reply other threads:[~2021-03-17 16:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 9:40 Font lock question Joost Kremers
2021-03-17 13:39 ` Stefan Monnier
2021-03-17 13:46 ` Joost Kremers
2021-03-17 15:33 ` Stefan Monnier
2021-03-17 16:09 ` Joost Kremers [this message]
2021-03-17 16:46 ` Stefan Monnier
2021-03-18 19:41 ` Joost Kremers
2021-03-17 16:31 ` Harald Jörg
2021-03-18 19:53 ` Joost Kremers
-- strict thread matches above, loose matches on Subject: below --
2008-05-28 10:34 Shaun Johnson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8fhwyai.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.
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.