From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61558: 29.0.60; Indentation with c-ts-mode doesn't work in code guarded by #ifdef..#endif Date: Sun, 19 Feb 2023 09:01:01 +0100 Message-ID: <224D8CBD-F363-4762-8C1F-A777B6601E6A@thornhill.no> References: <835yc12v7a.fsf@gnu.org> <87cz68p03u.fsf@thornhill.no> <83zg9cytni.fsf@gnu.org> <877cwgoyws.fsf@thornhill.no> <83ilfzz4cy.fsf@gnu.org> <87bklq65m2.fsf@thornhill.no> <83a61axfpm.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6782"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61558@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 19 09:02:19 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 1pTeeJ-0001XH-6o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Feb 2023 09:02:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTee5-00086Z-Sp; Sun, 19 Feb 2023 03:02:05 -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 1pTee3-000865-67 for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 03:02:03 -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 1pTee2-0004zL-Dl for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 03:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTee2-0003N6-1T for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2023 03:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Feb 2023 08:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61558 X-GNU-PR-Package: emacs Original-Received: via spool by 61558-submit@debbugs.gnu.org id=B61558.167679367112895 (code B ref 61558); Sun, 19 Feb 2023 08:02:02 +0000 Original-Received: (at 61558) by debbugs.gnu.org; 19 Feb 2023 08:01:11 +0000 Original-Received: from localhost ([127.0.0.1]:45610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTedD-0003Lv-HJ for submit@debbugs.gnu.org; Sun, 19 Feb 2023 03:01:11 -0500 Original-Received: from out0.migadu.com ([94.23.1.103]:18831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTed9-0003Lh-Ei for 61558@debbugs.gnu.org; Sun, 19 Feb 2023 03:01:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1676793663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ImElK7g5wuplsV3xTUPqgOq0nv3nnuiGE+X3h5LTcoI=; b=PXmLfgdNXsr4EaCdzul7P9PD1+u6g7UEjVfhcDIn6kLKbVZEzczmxTsokXecBGW2ijrd1r ABvFVQIUV3FpibL7wpcuUrYzbup1MP8JgugErEfZKqYhAvOygg6lW8QMaukhZjzkL0cwX0 6+Rv660BaQyntdUFK7S35GPkrsBwWkx1uN2aeuK1GVm9v/lQd7GlzOcnG36x61jsOkhDu5 peOsmulDOrYaw7gV8+Ku1+gAPWvC25mf30Dh719VaElhLLw6PAFeXrauvigvggoZu3/yo5 jL/x1WRJeDoS+t5yxDThG3+h+3Oq86ceKlLGz4yYgnobuRa3aCkAg+Cwry9V9Q== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83a61axfpm.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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:256035 Archived-At: On 19 February 2023 08:43:49 CET, Eli Zaretskii wrote: >> From: Theodor Thornhill >> Cc: 61558@debbugs=2Egnu=2Eorg >> Date: Sat, 18 Feb 2023 22:11:49 +0100 >>=20 >> > Doesn't tree-sitter grammar consider #if and #elif preprocessor nodes= ? >>=20 >> It seems we are at the mercy of this[0] issue here, in all the cases >> you've described=2E > >That issue is about #include, not #if=2E Is that related? Yeah, because all preprocs add these \n nodes that are a bit hard to accou= nt for at they are anonymous, and not declared as a legal node in the gramm= ar=2E I think they are just there because some tokenizing bug=2E