[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: |
David Engster |
Subject: |
Re: "Font-lock is limited to text matching" is a myth |
Date: |
Mon, 10 Aug 2009 22:42:52 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
[Added Eric Ludlam to Cc]
Lennart Borgman <address@hidden> writes:
> 2009/8/10 Daniel Colascione <address@hidden>:
>> It already does. It's called font-lock. If you want some kind of
>> infrastructure that uses a grammar to perform fontification, I
>> believe CEDET, which will be included in Emacs, can be wired up that
>> way [I think? I'm not quite sure whether Semantic's tags are generic
>> enough for fontification].
>
>
> 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. 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
- Re: Why js2-mode in Emacs 23.2?, (continued)
- Re: Why js2-mode in Emacs 23.2?, Xah Lee, 2009/08/10
- Re: Why js2-mode in Emacs 23.2?, Xah Lee, 2009/08/10
- Re: Why js2-mode in Emacs 23.2?, Miles Bader, 2009/08/10
- Re: Why js2-mode in Emacs 23.2?, Lennart Borgman, 2009/08/10
- "Font-lock is limited to text matching" is a myth, Daniel Colascione, 2009/08/10
- Re: "Font-lock is limited to text matching" is a myth, Lennart Borgman, 2009/08/10
- Re: "Font-lock is limited to text matching" is a myth,
David Engster <=
- Re: "Font-lock is limited to text matching" is a myth, Lennart Borgman, 2009/08/10
- Re: "Font-lock is limited to text matching" is a myth, Eric M. Ludlam, 2009/08/10
- Re: "Font-lock is limited to text matching" is a myth, Lennart Borgman, 2009/08/10
- Re: "Font-lock is limited to text matching" is a myth, Eric M. Ludlam, 2009/08/10
- Re: "Font-lock is limited to text matching" is a myth, Steve Yegge, 2009/08/11
- Re: "Font-lock is limited to text matching" is a myth, Miles Bader, 2009/08/11
- Re: "Font-lock is limited to text matching" is a myth, Daniel Colascione, 2009/08/11
- Re: "Font-lock is limited to text matching" is a myth, Miles Bader, 2009/08/11
- Re: "Font-lock is limited to text matching" is a myth, Lennart Borgman, 2009/08/11
- Re: "Font-lock is limited to text matching" is a myth, Daniel Colascione, 2009/08/11