From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61403: 30.0.50; C tree-sitter bug? Date: Sun, 12 Feb 2023 14:31:06 +0200 Message-ID: <83sffbgj5h.fsf@gnu.org> References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@gmail.com> <871qmv1ds5.fsf@yahoo.com> <835yc7i7nl.fsf@gnu.org> <87wn4nyy3y.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27621"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61403@debbugs.gnu.org, casouri@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 13:32:20 2023 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 1pRBWm-00071S-25 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 13:32:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRBWa-0006Qi-P3; Sun, 12 Feb 2023 07:32:09 -0500 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 1pRBWU-0006QD-5G for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:32:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRBWT-0008PD-TF for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRBWT-0002d7-Pj for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 07:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2023 12:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61403 X-GNU-PR-Package: emacs Original-Received: via spool by 61403-submit@debbugs.gnu.org id=B61403.167620510010081 (code B ref 61403); Sun, 12 Feb 2023 12:32:01 +0000 Original-Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 12:31:40 +0000 Original-Received: from localhost ([127.0.0.1]:44289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRBW8-0002cW-BY for submit@debbugs.gnu.org; Sun, 12 Feb 2023 07:31:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRBW6-0002cI-BP for 61403@debbugs.gnu.org; Sun, 12 Feb 2023 07:31:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRBW0-0008Ij-Uk; Sun, 12 Feb 2023 07:31:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8OeDNW+GZCirPdCORGz+xnjDvLS6OYCjSnNaqEOkEbM=; b=JON5LT/NL4x7 MYqXxxoPyxiLrD1kUGGKNU1HCqLmnh74iqvHciyy2zM3tm/665mT5/l/As1jZxl+H3GXPRWsQCnWv iLHcppltwVkDkpbEqMJQspocCvT8UHz7ArzTFvxI79fXMDUB99DMaUIdBmBiI/BaiZsalR0yhp+N0 6WHRVldD1VJ7H/uyq7oD3amdMDvqVul6FclovcBvJ/8cUnUP/vk9vtqmTLdLJgpzFJl8cV3in/Pbd FpthMBbh8jGW4vSamnF5RaA59ORKu0le3+/wri5McF8gdVE6uZ6Jbj2ZWuV31mSyORiK9XjWhcrhB OTxEL4I5d+5PJaJbGsqklA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRBW0-0008SC-EL; Sun, 12 Feb 2023 07:31:32 -0500 In-Reply-To: <87wn4nyy3y.fsf@yahoo.com> (message from Po Lu on Sun, 12 Feb 2023 18:30:41 +0800) 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:255402 Archived-At: > From: Po Lu > Cc: casouri@gmail.com, 61403@debbugs.gnu.org > Date: Sun, 12 Feb 2023 18:30:41 +0800 > > Eli Zaretskii writes: > > > I admit I don't understand the problem that is the subject of this > > bug. Why is it wrong to fontify TEST_STATIC as a type? CC mode also > > fontifies it as a type, btw. > > Yes, but CC Mode provides `c-noise-macro-names'. I said something > similar should exist in c-ts-mode at the beginning of this thread. Maybe so, but not for this case: I see absolutely no reason to "de-fontify" TEST_STATIC here, as it is part of the type. > > The only problem I see in what c-ts-mode does is that it does NOT > > fontify 'char', whereas CC mode does. So if anything needs to be done > > here, we need to look into why 'char' is not fontified by c-ts-mode. > > Apparently tree-sitter thinks only TEST_STATIC is the type, and > everything else is a syntactic error. Whatever the reasons, we need to try to fix this part.