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

From: Yuan Fu <[email-masked]>
Date: Thu, 15 Jun 2023 22:05:33 -0700

> On Jun 14, 2023, at 10:56 PM, Eli Zaretskii <[email-masked]> wrote:
> 
>> From: Po Lu <[email-masked]>
>> Cc: Eli Zaretskii <[email-masked]>,  Theodor Thornhill <[email-masked]>,
>>  [email-masked]
>> Date: Thu, 08 Jun 2023 16:50:21 +0800
>> 
>> Yuan Fu <[email-masked]> 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