bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension


From: Yuan Fu
Subject: bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension
Date: Thu, 15 Jun 2023 22:05:33 -0700


> On Jun 14, 2023, at 10:56 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Po Lu <luangruo@yahoo.com>
>> Cc: Eli Zaretskii <eliz@gnu.org>,  Theodor Thornhill <theo@thornhill.no>,
>>  63840@debbugs.gnu.org
>> Date: Thu, 08 Jun 2023 16:50:21 +0800
>> 
>> Yuan Fu <casouri@gmail.com> writes:
>> 
>>> Yeah. So is this the only way $ is used in C?
>> 
>> Yes.
>> 
>>> Could it appear in contexts other than identifiers?
>> 
>> No.
> 
> Ping!  Any progress with this?

The best option is to ask tree-sitter-c to recognize $. I see a PR for it but 
the author closed it shortly after posting, not sure what was going on[1].

Fixing it ourselves involves checking every identifier during fontification. Is 
that something we want to do?

[1] https://github.com/tree-sitter/tree-sitter-c/pull/114

Yuan




reply via email to

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