emacs-devel
[Top][All Lists]
Advanced

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

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


From: Lennart Borgman
Subject: Re: "Font-lock is limited to text matching" is a myth
Date: Mon, 10 Aug 2009 20:55:28 +0200

On Mon, Aug 10, 2009 at 8:47 PM, Stefan Monnier<address@hidden> wrote:
>>> 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.


I think Daniel suggested that it is a frame-work that can be used for
book-keeping of how far parsing has gone (the state must be kept
elsewhere) and parsing while Emacs is idle. Don't you think it can be
used for that?


> Your font-lock-keywords may of course do an arbitrarily complex form of
> parsing, but it's still not font-lock that does it.
>
>
>        Stefan
>




reply via email to

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