all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jacob Faibussowitsch <jacob.fai@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Alan Mackenzie <acm@muc.de>, Yuan Fu <casouri@gmail.com>,
	75226@debbugs.gnu.org
Subject: bug#75226: [31.0.50] C++ ts-mode missing "alignof" as keyword
Date: Wed, 8 Jan 2025 08:58:13 -0500	[thread overview]
Message-ID: <12ACBADE-630D-43F4-AB45-73FFC3F6E34D@gmail.com> (raw)
In-Reply-To: <867c754gi9.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

A good rule of thumb for this could be: if you can define an “operator” overload for something, then it is an operator and should be fontified as such.

Some examples:

1. `&&` or `and`, can define `operator &&()` or `operator and()` -> operator face.
2. `and_eq` or `&=`, can operator &=()` or `operator and_eq()` -> operator face.
3. `for`, cannot define `operator for()` -> keyword face.
4. `while`, cannot define `operator while()` -> keyword face. 

Just my pair of pennies...

Best Regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)

> On Jan 8, 2025, at 7:49 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Tue, 7 Jan 2025 19:09:40 -0800
>> Cc: Jacob Faibussowitsch <jacob.fai@gmail.com>,
>> 75226@debbugs.gnu.org
>> 
>> I found that both c++-mode and c++-ts-mode fontifies C++ alternative operators like and_eq, xor, etc as keywords. Maybe we should fontify them in operator face (added in Emacs 29) instead?
> 
> What do other editors do?
> 
> Alan, WDYT about this?


[-- Attachment #2: Type: text/html, Size: 1983 bytes --]

  reply	other threads:[~2025-01-08 13:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-31 16:01 bug#75226: [31.0.50] C++ ts-mode missing "alignof" as keyword Jacob Faibussowitsch
2025-01-02  3:28 ` Yuan Fu
2025-01-02  5:06   ` Stefan Kangas
2025-01-02  6:41   ` Eli Zaretskii
2025-01-02 14:03     ` Jacob Faibussowitsch
2025-01-02 15:47       ` Eli Zaretskii
2025-01-03  8:50     ` Yuan Fu
2025-01-03 11:38       ` Eli Zaretskii
2025-01-04  7:34         ` Yuan Fu
2025-01-08  3:09           ` Yuan Fu
2025-01-08 12:49             ` Eli Zaretskii
2025-01-08 13:58               ` Jacob Faibussowitsch [this message]
2025-01-08 14:49               ` Alan Mackenzie
2025-01-08 17:12                 ` Dmitry Gutov

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=12ACBADE-630D-43F4-AB45-73FFC3F6E34D@gmail.com \
    --to=jacob.fai@gmail.com \
    --cc=75226@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=casouri@gmail.com \
    --cc=eliz@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.