From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification. Date: Sun, 19 May 2024 21:00:42 +0200 Message-ID: References: <87h6et6550.fsf.ref@aol.com> <87h6et6550.fsf@aol.com> <86wmnpabu0.fsf@gnu.org> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25304"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , 71070@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 19 21:02:31 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s8lnj-0006PA-34 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 May 2024 21:02:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8lnE-0002LV-JP; Sun, 19 May 2024 15:02:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8lnC-0002L3-C3 for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 15:01:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8lnB-0005Ho-QD for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 15:01:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8lnF-00054I-NQ for bug-gnu-emacs@gnu.org; Sun, 19 May 2024 15:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2024 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71070 X-GNU-PR-Package: emacs Original-Received: via spool by 71070-submit@debbugs.gnu.org id=B71070.171614526219443 (code B ref 71070); Sun, 19 May 2024 19:02:01 +0000 Original-Received: (at 71070) by debbugs.gnu.org; 19 May 2024 19:01:02 +0000 Original-Received: from localhost ([127.0.0.1]:37546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8lmH-00053M-Pg for submit@debbugs.gnu.org; Sun, 19 May 2024 15:01:02 -0400 Original-Received: from sonic304-10.consmr.mail.bf2.yahoo.com ([74.6.128.33]:40367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8lmF-00053C-TQ for 71070@debbugs.gnu.org; Sun, 19 May 2024 15:01:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1716145249; bh=Zpj6vHmjT9lp8G8j4loetDdNVAZEwkOJAhAV/bRgbyU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=mCsWH7xAAwxMWNk3fO4+tWL6dIeY+gOu5YY4cNFdqQIk6wXWooeA4/NhhQiL1DJf0Z8g2sVadkzBchW8sAntr7YtR9cCu9LKDWUJTEFtffrmG012wbWmuEM0455RVZpTuLpqmV+xLTIq5mF2jdUMGLIFxGeF2vZapV0rAJQIPvHCK87a+K6ftxCoRM0gL+VkbAclF4GvHAtmRw/F4xUEXtIiv2ObRbQzgVcClOrOF9ZA3wArJlqUMFGFEQ4SKCjtf1CyF3/uhMVy8el6YbXUGBkuwj5hgbpI8L/4m4isba+sOmUhjeNLgAbXFTlDb7TRpMXOQZNruWEKXvGJVAmu+w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1716145249; bh=vJwRxQR9uQYttK2wvu2kxeAeidICtFOoqlC7NhRaRXM=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=XwtBGat30lHZnxeq1n2u6Bb168hvJkprXH5lMX0xawU0LeQHplLgrCKNLeQdZqkBd3EfdGvDSuZSNZWQzulOsuNDx1SqAlsq39zuDvJuFF94bV/imizwH+o+q80QVhwWc0px786bMXZ7vU0RZGMzWWgWB+9Yhr0JrvAIG/Dw/4cQnO/igkVj4fJOl2LuxITcXbqRi4+p/hPEWltvg0AkiMcEMVDoPSWGyqklKw/DsvLqiPnwcGJF51UCVulDGatOwrMe5PzoFQfVsHWKIhI1qN59EUFj6ME21KJU9RG5uSf1XYU7obk6PAEZgPYQ3oDjWtbWTwQbcKmZhn6io+IWDw== X-YMail-OSG: _ZqAKCAVM1lDU.SNVv05GbgKZNB26F5S.w4AKwSd9A01pTEl82gF8L7Yg9S9KGW MB618NUDXc6gOLT5l3H8VLajDC21gcNpdyUvpiGtHlUxWwYDsuHpa5anGTDkXP0q8bwRbWIhYBo4 TXgAiZRElbOVDkJbnQARhUd7LxbEYDuSejkeEQMaONey90QLskg0P179OkRX7ps_RyGzVAE2A51x JSnSLVN7wTjEOrbar806jfhg_G8ubC_L52l7KlRlymSBplfzu4E0oNjVAsZTGH75M0Zfv9ZYIKso WThRkdFlCiEOla0hKTWpDPDvyB4JtqaUGuo_7dYwJ19m6FAbWUgkqzt7BVtS6vXGcg.An.0MO_eX 2M3mgBRleWrpXkY1x.MMljUR9KAHe7KfCuQCsZBRnpWPZHFvCDTJdziya8D2EkoPK5FAVA_hOAcO Xpwtp_vXqTolmAKfKFCGcK3PZ7ok0PI_X5LRYuies1NuBpAEtd9PVG7ozB1YwPTefRIXs8XAhLKM mgqgoC216i7IQG8CXEuUngy34yAY4Pwp0BxRgQtlZglJeV7f255GUCaIT9AmSXT41ykoScqf_2VV iJymhNRBlej4h8jEHyp_t2lHVPBPXG3rYtvv48uNZ3hxOs_W8JSxllD4toyxpJiL4y3Zy4kem0qx fITNowxnaz3P1LVodcCSOSvytCe4UcxJ.3vqpLoOe0BtYF6gbRn1nGhQY.2fe6VqCiwytZcvvAeC 3KCAfBXxnmIQ1aYVtKB5Av793O9pQkQAP8GmhXtnbuU9zMAofT4tT.rHaVjbhd_F1QOioOsFy52p BkcwUrAo395QMatmfzXdIZmW1D4DOy_5e7SIq002Uz X-Sonic-MF: X-Sonic-ID: c74b369b-c303-4da5-b313-83b1da520825 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sun, 19 May 2024 19:00:49 +0000 Original-Received: by hermes--production-ir2-7b99fc9bb6-dmmmt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8bd07a6fa9080c35faa7353c285d6f97; Sun, 19 May 2024 19:00:44 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86wmnpabu0.fsf@gnu.org> X-Mailer: WebService/1.1.22356 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285447 Archived-At: On Sun, May 19, 2024 at 09:36:07PM GMT, Eli Zaretskii wrote: >> Date: Sun, 19 May 2024 20:14:19 +0200 >> From: Ergus via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> >> Following up the conversation in the develops mailing list I will report >> this issue still happening: >> >> In c++-ts-mode, the 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). > >Why do you think std should be in font-lock-constant-face? The name >of a namespace is not a constant, it's an identifier. Hi Eli: That's how namespaces are fontified in the c++-mode. Not telling it is correct, wrong or if needs improvement; just that c++-ts-mode is not doing in the same way. Try this: ```main.cpp const std::string a; class myclass { std::time::timespec var; }; int main() { std::string b = 1; } ``` and then M-x c++-ts-mode you will see the difference.