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: Tue, 26 Mar 2013 17:48:59 +0400 [thread overview]
Message-ID: <CAERznn-wuefF_f8w6isELKoW=u1OS=tvG1od7LuT6Vc6fcopxw@mail.gmail.com> (raw)
In-Reply-To: <jwvr4pms5g9.fsf-monnier+emacs@gnu.org>
On Fri, Sep 28, 2012 at 4:28 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>
> <snip>
>
> -- Stefan
Hi Stefan
Wanted to say thanks once again for the help.
I've finally found the time to try out your suggestion and it worked
as a charm [1]. Although, the similarity is not immediately obvious,
because I couldn't resist to (cl-prettyexpand ...) the
syntax-propertize-rules macro and tailor the expansion to my liking.
The only drawback was that it only worked for Emacs24, so I had to
backport basically the same functionality via
font-lock-syntactic-keywords [2]. And this implementation, admittedly
slower than syntax-propertize-based one, is probably the answer to my
original question.
Cheers,
immerrr
1. https://github.com/immerrr/lua-mode/commit/dbedb1e3e19e81e9031eff08d2d30b19b89d8654
2. https://github.com/immerrr/lua-mode/commit/2a0314b2bda879f5e97d851c43e840671f5ace8d
prev parent reply other threads:[~2013-03-26 13:48 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
2012-09-28 12:28 ` Stefan Monnier
2012-09-29 6:50 ` immerrr again
2013-03-26 13:48 ` immerrr again [this message]
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-wuefF_f8w6isELKoW=u1OS=tvG1od7LuT6Vc6fcopxw@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.