all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ergus <spacibba@aol.com>
To: Yuan Fu <casouri@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: A few questions about c++-ts-mode.
Date: Sun, 12 May 2024 22:11:41 +0200	[thread overview]
Message-ID: <cssftre6v6k35bzze2d5llaggrzxebfurjqjt5ehe5v2lql3lj@25twdmimeai4> (raw)
In-Reply-To: <BDD7FFFB-C365-4C50-B0BF-EB970F5677DE@gmail.com>

On Wed, May 08, 2024 at 09:29:34PM GMT, Yuan Fu wrote:
>
>
>> On May 7, 2024, at 6:26 PM, Ergus <spacibba@aol.com> wrote:
>>
>> On Tue, May 07, 2024 at 05:19:53PM GMT, Yuan Fu wrote:
>>>
>>>
>>>> On May 7, 2024, at 3:59 PM, Ergus <spacibba@aol.com> wrote:
>>>>
>>>> Hi
>>>>
>>>> There are a few differences between c++-ts-mode and c++-mode that I
>>>> don't know if should be reported or they are like that due to some
>>>> design choice.
>>>
>>> AFAIK, the design goal of c++-ts-mode is to follow c++-mode whenever possible.
>>>
>>>>
>>>> 1. namespaces are not fontified like in c-mode (i.e in std::string the
>>>> `std` used to have font-lock-constant-face while `string` used to have
>>>> font-lock-type-face). It seems like tresitter identifies properly them
>>>> like (namespace_identifier) and (type_identifier)
>>>
>>> Then we probably want to fontify namespaces in constant face. Or perhaps add a namespace-face that inherits from constant face.
>>>
>>>> 2. Doc string comments are fontified like normal comments. It looks like
>>>> treesiter does not recognize them at all. Is this something we need to
>>>> report to treesitter or we need to workaround it in emacs side?
>>>
>>> I’m working on that. I think the best way is to workaround it in Emacs.
>>>
>>>> 3. macros like `#if defined(something)` fontifies the whole macro with
>>>> same font (the `identifier` used to have no colors in c++-mode)
>>>
>>> We should update the fontification to leave out the identifier.
>>>
>>> Yuan
>>
>> Hi Yuan:
>>
>> Forgot to mention that
>>
>> 4. enum and enum class indentation is not working either
>>
>> struct send {
>>     |
>> };
>>
>> class send {
>>     |
>> };
>>
>> enum send {
>> |
>> };
>>
>> enum class send {
>>     |
>> };
>>
>
>Could you open a bug report for this? I’ve fixed the other since they are relatively simple.
>
>Yuan

Hi Yuan:

Sorry for the delay.

I saw your fixes, and it looks like 2 and 3 are fixed; very thanks.

But 1 is still there.

I will report the indentation issue, but it seems to happen only somethimes,
so I'm looking for a pattern to reproduce it.

Best,
Ergus




  parent reply	other threads:[~2024-05-12 20:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fakigaygsqcunvvbm2zscn7qlkxi234f574ul3hl5vrhymm22k.ref@syjmsievkpp3>
2024-05-07 22:59 ` A few questions about c++-ts-mode Ergus
2024-05-08  0:19   ` Yuan Fu
2024-05-08  1:26     ` Ergus
2024-05-09  4:29       ` Yuan Fu
2024-05-09  6:18         ` Filippo Argiolas
2024-05-12 20:11         ` Ergus [this message]
2024-05-08 13:35     ` Eli Zaretskii
2024-05-08 21:05       ` Ergus
2024-05-09  0:16         ` Yuan Fu
2024-05-09  5:17           ` Eli Zaretskii
2024-05-09  5:03         ` Eli Zaretskii
2024-05-09  5:34           ` Filippo Argiolas
2024-05-09  5:53             ` Eli Zaretskii
2024-05-09  6:11               ` Filippo Argiolas
2024-05-09  7:03                 ` Eli Zaretskii
2024-05-13  6:23               ` Filippo Argiolas
2024-05-13  8:10                 ` Filippo Argiolas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cssftre6v6k35bzze2d5llaggrzxebfurjqjt5ehe5v2lql3lj@25twdmimeai4 \
    --to=spacibba@aol.com \
    --cc=casouri@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.