From: immerrr again <immerrr+lua@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: font-lock-syntactic-keywords: evaluating arbitrary elisp inside matchers?
Date: Fri, 28 Sep 2012 12:19:56 +0400 [thread overview]
Message-ID: <CAERznn-J11N+UcfuyUOLnXc=Rqf8ykO0rRwFtAj1-BhVvu39rw@mail.gmail.com> (raw)
In-Reply-To: <jwvpq5ant1c.fsf-monnier+emacs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
On Tue, Sep 25, 2012 at 5:20 PM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:
> > The snippet is great. I, for one, have somehow missed the "<"/">" syntax
> > descriptors. But I have a concern: what if closing long bracket,
> > i.e. "]==]",
> > is after `end', doesn't it need an extra matcher rule for that?
>
> Well, you'll want to make sure you don't go past `end' and if the ]==]
> is not found before `end' you just don't put any "closing syntax
> property". That's not a problem, because that ]==] will be found in
> some later invocation of the syntax-propertize function where `end' will
> be after the ]==].
>
Hold on, do I understand procedure correctly in the following
situation: suppose, we're propertizing an arbitrary buffer region, big
enough not to be matched in single attempt; suppose, first match region -
from `begin1' to `end1' - contains exactly one opening long bracket and its
long bracket of the same level is located beyond `end1' point, and there's
no other opening long bracket in between. Am I right that the next match
invocation will operate on region starting from `end1 + 1'? If yes, then
unless there's a rule that can match closing long brackets, the closing
long bracket won't be found and thus won't be propertized, or will it?
--
Cheers,
immerrr
[-- Attachment #2: Type: text/html, Size: 1787 bytes --]
next prev parent reply other threads:[~2012-09-28 8:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-21 20:48 font-lock-syntactic-keywords: evaluating arbitrary elisp inside matchers? immerrr again...
2012-09-25 1:03 ` Stefan Monnier
2012-09-25 11:31 ` immerrr again...
2012-09-25 13:20 ` Stefan Monnier
2012-09-28 8:19 ` immerrr again [this message]
2012-09-28 12:28 ` Stefan Monnier
2012-09-29 6:50 ` immerrr again
2013-03-26 13:48 ` immerrr again
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='CAERznn-J11N+UcfuyUOLnXc=Rqf8ykO0rRwFtAj1-BhVvu39rw@mail.gmail.com' \
--to=immerrr+lua@gmail.com \
--cc=emacs-devel@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.