From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: A few questions about c++-ts-mode. Date: Wed, 8 May 2024 00:59:40 +0200 Message-ID: References: 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="1202"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 08 01:00:38 2024 Return-path: Envelope-to: ged-emacs-devel@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 1s4TnZ-00005n-LA for ged-emacs-devel@m.gmane-mx.org; Wed, 08 May 2024 01:00:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4Tmo-0001Tg-Ra; Tue, 07 May 2024 18:59:50 -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 1s4Tmn-0001TS-0s for emacs-devel@gnu.org; Tue, 07 May 2024 18:59:49 -0400 Original-Received: from sonic310-15.consmr.mail.bf2.yahoo.com ([74.6.135.125]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4Tml-0002eQ-1j for emacs-devel@gnu.org; Tue, 07 May 2024 18:59:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1715122784; bh=6LJ0mIynhSvjMfwfdzaQ8UzBQ3LJDNdmWC3Bu8l5QHA=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=uUJRh9q8uftjY9TDNBtOH9LFPOLQzOethsVuZ0z4zCU8Z8XWP0bufroakQ4qyXu6nzo+MV91OfoK5JuU5HU+1C3bk4mJfp+mN4Nnwl958MrS0KBF54trzCixV2oyWg0F6HEkvEzUgdZDjiTeZKaVaMQDQB35y/2KOBzwG7+rUz1NSzLs0I5qJtZd+4JW7+uuFd10vD9QCyc5DRQ5ssRZhW2j8yegf5SmZYw5t+Q7ymU0N2enEM54Ftug164LNC0wTSzhLhsl7bB9EHgnUCRbKgcnsKUNrn87e1j5aZUYK4AnrfF0u/ONqHB/R2u7GZdDn/tP2SjqrMU4+J65cEWyEQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1715122784; bh=ZOFuiItuqn0eRCfT5UuzxLQ8dYsWfNtDSuoLFn07EBw=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=HycSSnTFOLMavGwBkYWVNRnrJ9CPbKW/SCxG/rGkSgwXgsBYXA5xBp/gut8g9iw7lcVlw3EkW54kBqCUJjC4FgzMFSps5GhN6VBbYpGCiAPboJJ8BxKpQ8BHnjsE5Y+M6HDRgm5dYLWvni3nYXNENxAvVGXTJZ9bDh5DgP03C4Zq7dd2upDof9RkiaO73Q/oQ0bSGU3WA17xjk7OjcxqJyjZ3terenUcDcCHU5g+joJmEgjm2jC/MARsSje9ZAlDWMNOcxFTJbhlhPzyqIqVTb3pIaSBtiwQCdVnJZqIMYljYAeOqy4Tyy8vF9CUuf0QuUcOLLEarOYZXUJ4IIbCcw== X-YMail-OSG: AiA1VWQVM1kWqDbNVZhD5Pb3WPFAYjlc13SAdUKuPgVetE6wCQ68s.qxJYoup61 gD2Ijeo9SJS1L7tzT26NFiIPXPPEX_PL5PuOpa0lC7SbJef_w4JujoEyUEkJ7pO_xKqNzZmCGuXo XeFZK.Y.S4UU4J.m1dAEa7v0IM2yJvkSZc3sIqYs8UeEIl49kCkfMOMuS1Px5tBbg_jAhhqMHT4H TCIOjWDNGfQLcd7TTgrwRfpfrq6BzjtHgWgiZbIFJRAkHvps0vBWvLbCCBYWiV0_pHOVkCcFzx.e 9wZO8Rqhl0xGNrwguPIQfdReUCi30cJw54yvfoXF3MW.pHqPx5NalhMk_nSIPvyJEFWQbxrKvAxq 69nmOIyeE.Cy8XOOpRKXxJZm8MwLeCsVWQ0Yv1lSP1XQQKaL6KmyjkBRpw21tyJ8M6w7LpGBI5hz qBzClqqXA3Y6I8YxNizl.GTX05itxVYsn3PZOfKHNzlWu7HzDr6.bULZ.SG7rIu2PWrkGSTYrt.A jy77wrSK5BiiligGPg9_5INK5koRmzgABSxgUFxoHumaGVrhCItv3JDcSDKVR0QKh_BqWUByy9ob D8lu_s0Dxz6GliauNL9JaLec.LZbQiorL3g8IZzJEkXD3PhrTSx2Muu6jzAjjaLC__y_pcx4cTYD z5JS1E6kOS2Cedk81V8cD_Jhj164uhNrEv46s0qeHHt14ILmf0kX6_DZfDvLPxwn5PUdQ4mWdZwd MsjJf7l8I0EyOBHlzG_nBVKVMshgPi.omau2BPmggMXfXMCK46oosCoiyEncD_iuxKfCGPmlzCi9 QTcriL5vbsiDM2flNL_MswVwaxpIqt2tdo36X5XNRn X-Sonic-MF: X-Sonic-ID: 10e2c85a-7cfc-4230-bec1-68f95be31456 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Tue, 7 May 2024 22:59:44 +0000 Original-Received: by hermes--production-ir2-7b99fc9bb6-sv997 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c40ef3b0f052556799f87254afabbff9; Tue, 07 May 2024 22:59:41 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.22321 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.125; envelope-from=spacibba@aol.com; helo=sonic310-15.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:318974 Archived-At: 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. 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) 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? 3. macros like `#if defined(something)` fontifies the whole macro with same font (the `identifier` used to have no colors in c++-mode) Somehow related: Now that there is treesitter, eglot, project.el, improved xref and completions + flymake... does anyone still use CEDET? If not... is there some plan to remove it in the future? There is few documentation around mentioning it and created confusion in new users... Thanks in advance, Ergus