[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tokenizing
From: |
Stephen Leake |
Subject: |
Re: Tokenizing |
Date: |
Mon, 22 Sep 2014 09:05:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Stefan Monnier <address@hidden> writes:
>>>> - it should be possible to completely replace the font-lock-mode with
>>>> this mode, given a concrete language tokenizer;
>>> The intention for font-lock highlighting is to show
>>> syntactic structure. In many cases, we end up limited to lexical
>>> highlighting, but that's a problem.
>> syntax-propertize provides hooks to let modes add to that;
>
> Maybe you use it for that, but it's definitely not its intention:
> `syntax-propertize' is not meant for highlighting at all.
Sorry, I meant "font-lock-add-keywords"; you can add arbitrary functions
that use the parser results to choose a face.
The parser does rely on syntax-propertize.
--
-- Stephe
- Tokenizing, (continued)
- Tokenizing, Richard Stallman, 2014/09/20
- Re: Tokenizing, Stephen Leake, 2014/09/20
- Re: Tokenizing, Vladimir Kazanov, 2014/09/20
- Re: Tokenizing, Eric Ludlam, 2014/09/20
- Re: Tokenizing, Vladimir Kazanov, 2014/09/20
- Re: parsing (was tokenizing), Stephen Leake, 2014/09/21
- Re: Tokenizing, Vladimir Kazanov, 2014/09/20
- Re: Tokenizing, Stefan Monnier, 2014/09/20
- Re: Tokenizing, Stephen Leake, 2014/09/21
- Re: Tokenizing, Stefan Monnier, 2014/09/21
- Re: Tokenizing,
Stephen Leake <=
- Re: Tokenizing, Richard Stallman, 2014/09/21
- Re: Tokenizing, Vladimir Kazanov, 2014/09/21
- Re: Tokenizing, Stephen Leake, 2014/09/21
- Re: Tokenizing, Stefan Monnier, 2014/09/21
- Re: Tokenizing, Vladimir Kazanov, 2014/09/21
- Re: Tokenizing, Daniel Colascione, 2014/09/21
- Re: Tokenizing, Vladimir Kazanov, 2014/09/22
- Re: Tokenizing, Daniel Colascione, 2014/09/22
- Re: Tokenizing, Stephen Leake, 2014/09/22
- Re: Tokenizing, Daniel Colascione, 2014/09/22