From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: font-lock-mode limitations
Date: Tue, 19 Mar 2019 14:48:06 -0400 [thread overview]
Message-ID: <jwv7ecuvh79.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: CAGQ2GfoUwN28jdT7tt60xf4e8oa800niHSrVa1W+xo+S=eQPJA@mail.gmail.com
> hundreds (maybe thousands) of keywords to highlights. Now that I added more
> functions to font-lock-defaults nothing is highlighted anymore.
You need to look for the actual error that causes this.
Is there are relevant message in *Messages*?
Maybe M-x jit-lock-debug-mode RET (along with enabling the debugger)
could help as well.
> I took a quick glimpse at font-core.el and font-lock.el but I could not
> find where the regexp match limitations are set
The limits would be in src/regexp.c
BTW, instead of creating a monster regexp, maybe another approach is to
use a simple regexp that matches any identifier in function position
and then look up a table to see what kind of highlighting to apply to it
(IIRC that's what we do in elisp-mode to highlight macro calls
differently from function calls).
Stefan
prev parent reply other threads:[~2019-03-19 18:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-19 17:11 font-lock-mode limitations Aurel Buche
2019-03-19 18:48 ` Stefan Monnier [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
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=jwv7ecuvh79.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).