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 22:51:53 +0200

On Mon, Aug 10, 2009 at 10:42 PM, David Engster<address@hidden> wrote:
>> I think Xah meant the grammars. Maybe CEDET is not yet using
>> font-lock, I do not know how old JIT-lock, which is an essential part
>> for this, is.
>
> CEDET can create formatted strings from the tags, and it supports using
> font-lock for that (see file semantic-format.el). There's also the
> minor-mode 'semantic-decoration' (semantic-decorate.el) which applies
> styles to certain tags in the buffer while editing, and this mode does
> not use font-lock.


Thanks David. What is the reason that font-lock is not used there?

I do not know much about it, but am a bit curious. Does CEDET use the
font-lock/JIT-lock frame work for handling parsing requirements?


> Since Semantic usually does not parse every
> expression in the buffer, this decoration is currently limited to stuff
> like include statements, function declarations or protected class
> members. (Eric, please correct me if I'm wrong here).
>
> -David
>




reply via email to

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