[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
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Po Lu, 2023/06/02
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Eli Zaretskii, 2023/06/02
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Yuan Fu, 2023/06/08
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Po Lu, 2023/06/08
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Eli Zaretskii, 2023/06/15
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension,
Yuan Fu <=
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Eli Zaretskii, 2023/06/16
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Yuan Fu, 2023/06/19
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Eli Zaretskii, 2023/06/19
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Yuan Fu, 2023/06/27
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Eli Zaretskii, 2023/06/27
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Yuan Fu, 2023/06/27
- bug#63840: 29.0.91; c-ts-mode fails to fontify common C extension, Eli Zaretskii, 2023/06/27