From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#63957: 29.0.91; c-ts-mode: incorrect fontification in alloc.c Date: Fri, 9 Jun 2023 23:51:46 -0700 Message-ID: References: <83mt1a33a4.fsf@gnu.org> <83legu333f.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) 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="40097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63957@debbugs.gnu.org, Theodor Thornhill To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 10 08:53:28 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 1q7sTW-000AAP-Ec for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Jun 2023 08:53:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7sTH-00021u-89; Sat, 10 Jun 2023 02:53:11 -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 1q7sT8-00021Y-Ht for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2023 02:53:03 -0400 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 1q7sT8-0005AC-9G for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2023 02:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7sT8-0007On-4I for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2023 02:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jun 2023 06:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63957 X-GNU-PR-Package: emacs Original-Received: via spool by 63957-submit@debbugs.gnu.org id=B63957.168637992728363 (code B ref 63957); Sat, 10 Jun 2023 06:53:02 +0000 Original-Received: (at 63957) by debbugs.gnu.org; 10 Jun 2023 06:52:07 +0000 Original-Received: from localhost ([127.0.0.1]:33141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7sSE-0007NP-U7 for submit@debbugs.gnu.org; Sat, 10 Jun 2023 02:52:07 -0400 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:46132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7sSC-0007Mv-OC for 63957@debbugs.gnu.org; Sat, 10 Jun 2023 02:52:05 -0400 Original-Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-25bbaa393aaso42249a91.0 for <63957@debbugs.gnu.org>; Fri, 09 Jun 2023 23:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686379918; x=1688971918; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MgCOYObNWJT5Zih6Rsxpv6C1qIQ4ATfBxk1szFeTj4M=; b=ZKQYoJV9qBNdwnP+gACEk1IRunhlzLUllcOSLVBBN3iO+abmZWbQ7gB5YKpAlD3DF7 Bq+jTV7CFklxRiJc0r3U/+0qw2MYamcBk+93JwQ9xKbMoFefk33HKgN81tv6qERNo9vz XnP8z242sMQI4zrhVLLUB3XuNUnW+gd1ijAWFqmOlUU4VbC0VuWyR1xvhBcx8suqQ21p h649Pn9FT0xnOrDiiFPjeq8mtoi/4ldi3dyew5W3pp4jdvAnon3xIz1665BoRv1sqefZ n68MHDqAncL1s1uQz7Jl0F9qypdJZCM8dt8IhK20VHNtI7ZXkzsmpBoYDu8YMN15Y6bg zKmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686379918; x=1688971918; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MgCOYObNWJT5Zih6Rsxpv6C1qIQ4ATfBxk1szFeTj4M=; b=ihc3sdLK6aHxW90B1IGEDQkGWFZPR3QrREbU/m+y7p+0SyY/AowaBaVQXlHbBWd+Dm WuOwh/n0s5RSfTO7VZ+V9stRWPErUGIpQoP+6S0F9t89iXQkS+ig9cKG1jIIEhayY91f qkDbx0lWZBqzbsC2qiqvpabMWo8N2JOn7LDGw7AXdoYiRTkoIYf0TUTO7687t/le04VO lhIQo0Kl/2GxKUrotR2L3QBEuwQ3PYK4aj0pzX643rQvkeH8TwLpQzFbGTWbxf6o5RyT b7KCb7N4MIsClGIPY+PTmgh6lZsuziOpb6b+uKcaELDI8CgVsUel7afVFVnRwJGeWUMv 2o7w== X-Gm-Message-State: AC+VfDyr3UywLeRlkN4HYQo+I6ZlSO9vMe+rDEuiJK1Fcw5wCfVwaY+d DMXuHStpD2DFWClIaG5IBwQ= X-Google-Smtp-Source: ACHHUZ60muQni3v/EuYC9zZP8ERKWYV3UH9BBMJtxnFkSG9Yvrb3t28v3yCF4G7InHhSE56c84JTVw== X-Received: by 2002:a17:90a:ea8e:b0:258:ad45:936d with SMTP id h14-20020a17090aea8e00b00258ad45936dmr2974924pjz.19.1686379918425; Fri, 09 Jun 2023 23:51:58 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id c14-20020a17090a020e00b0023fcece8067sm4093364pjc.2.2023.06.09.23.51.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2023 23:51:58 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.600.7) 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:263197 Archived-At: > On Jun 8, 2023, at 12:19 AM, Yuan Fu wrote: >=20 >=20 >=20 >> On Jun 7, 2023, at 11:00 PM, Eli Zaretskii wrote: >>=20 >>> Date: Thu, 08 Jun 2023 08:56:51 +0300 >>> From: Eli Zaretskii >>>=20 >>>=20 >>> To reproduce: >>>=20 >>> emacs -Q >>> C-x C-f src/alloc.c RET >>> M-x c-ts-mode RET >>> C-u 3184 M-g g >>>=20 >>> Observe that several "else if" clauses in the following fragment are = not >>> fontified correctly: >>=20 >> Adding the relevant folks. >>=20 >> Could you guys please look into this issue? Ok, so this is one of such cases where the preproc directives severs the = code and the parser can=E2=80=99t recover very well. We can cover it = over by just fontifying =E2=80=9Celse if=E2=80=9D with keyword face, but = there are a million ways for the preproc directive to mess up the = parser, I don=E2=80=99t think we can cover every case. Yuan=