emacs-devel
[Top][All Lists]
Advanced

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

Re: cc-mode fontification feels random


From: Daniel Colascione
Subject: Re: cc-mode fontification feels random
Date: Fri, 4 Jun 2021 03:05:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1


On 6/3/21 11:10 PM, Eli Zaretskii wrote:
From: Daniel Colascione <dancol@dancol.org>
Date: Thu, 3 Jun 2021 20:16:53 -0700

As long as I can remember, cc-mode fontification has felt totally
random, with actual faces depending on happenstance of previously-parsed
types, luck of the draw in jit-lock chunking, and so on. Is there any
*general* way that we can make fontification more robust and consistent?

For years and years now, I've been thinking we just need more
deterministic parser-and-based mode support, and I still think that, but
on a realistic level, that doesn't seem to be coming any time soon.
Full agreement.  And not only for C and C-like languages, IMO.

See

   https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00059.html

See also Eglot and LSP.

Patches more than welcome, I think having this (whether tree-sitter or
some other similar technology) in core is long overdue.

We could just vendor tree-sitter.




reply via email to

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