[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Font-lock is limited to text matching" is a myth

From: Stefan Monnier
Subject: Re: "Font-lock is limited to text matching" is a myth
Date: Mon, 10 Aug 2009 14:47:01 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>> it'd be nice if emacs provides syntax parsing infrastructure.... nmxl, js2,
>> cedet, can be leads in this direction and see how things work out.
> It already does. It's called font-lock.

No, font-lock doesn't do any parsing.  parse-partial-sexp does a very
limited kind of parsing, and font-lock makes use of it, but font-lock
itself doesn't do any parsing.
Your font-lock-keywords may of course do an arbitrarily complex form of
parsing, but it's still not font-lock that does it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]