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#59468: 29.0.50; c-ts-mode cannot fontify after macros are encountered Date: Wed, 23 Nov 2022 05:30:53 +0200 Message-ID: <83tu2qz6s2.fsf@gnu.org> References: <87k03n4v0r.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32306"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 59468@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 23 04:31:20 2022 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 1oxgTo-0008Eb-6U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Nov 2022 04:31:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxgTY-0001fs-RG; Tue, 22 Nov 2022 22:31:04 -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 1oxgTW-0001fT-HB for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 22:31:02 -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 1oxgTW-0004bq-2j for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 22:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxgTV-0008Kg-Uu for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 22:31: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: Wed, 23 Nov 2022 03:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59468 X-GNU-PR-Package: emacs Original-Received: via spool by 59468-submit@debbugs.gnu.org id=B59468.166917424632004 (code B ref 59468); Wed, 23 Nov 2022 03:31:01 +0000 Original-Received: (at 59468) by debbugs.gnu.org; 23 Nov 2022 03:30:46 +0000 Original-Received: from localhost ([127.0.0.1]:53067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxgTG-0008K7-6B for submit@debbugs.gnu.org; Tue, 22 Nov 2022 22:30:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxgTC-0008Js-Oo for 59468@debbugs.gnu.org; Tue, 22 Nov 2022 22:30:45 -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 1oxgT7-0004ZV-G8; Tue, 22 Nov 2022 22:30:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=JtFf9hT6B3jElia6FOjVnwm25HtrnUtNwGFfo2cxDNw=; b=rhMxmXoQKAdOJqC+BOAJ BDdfG1avXm33tg+TmowqtdJZlOGmfYadVfM1tb0FE3JtgaUJLFoqyqRiK4ZJDqcrpgSSssAj/L/Xq s8c7m3voBrinZkNefPxRuC/g370FD9LYJFsMIwz0xl1ls+y92vWkXFQ9T+03g4S1Fkswdr//goEab 3Drdi46pz4LdYb0OqP8iXLYuFoPKpBTisiXVpRpJWUaDT1lzKNzBxovx/cDkYN9W5RJJv4LcjASH7 tOyF34YRetF3c4/aFEnpaI4YMjhvyOPydxaun1gTBVJJCbuQc5hSm3EPJFmK0VWhvTqIz4xG6IAps PUoK72uhuC2ohg==; 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 1oxgT6-0001xY-VK; Tue, 22 Nov 2022 22:30:37 -0500 In-Reply-To: (message from Yuan Fu on Tue, 22 Nov 2022 12:11:17 -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:248703 Archived-At: > Cc: 59468@debbugs.gnu.org > From: Yuan Fu > Date: Tue, 22 Nov 2022 12:11:17 -0800 > > I’m not even sure the author of tree-sitter-c would accept changes that > try to parse macros: he has made it clear that the purpose of > tree-sitter-c is to support post-processed C and leave macros and > preprocessor to error-recovery. What do you mean by "error-recovery"? Is it possible to do something on our end for processing the error nodes, which would remedy the issue with macros? Or maybe some other way of handling the macros by ourselves?