[Top][All Lists]

[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

reply via email to

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