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#64830: 30.0.50 C++ treesitter mode no coloration Date: Sat, 24 Aug 2024 13:43:25 -0700 Message-ID: References: <868qwy8ii9.fsf@gnu.org> <86o75s5pu0.fsf@gnu.org> <86mslc5plq.fsf@gnu.org> <86h6bk5nnu.fsf@gnu.org> <3C502C2B-829D-42C3-A74A-2A783F5880CE@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) 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="33553"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64830@debbugs.gnu.org, Eli Zaretskii To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 24 22:45:35 2024 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 1shxdf-0008Yw-2z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Aug 2024 22:45:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shxdN-00066Z-NN; Sat, 24 Aug 2024 16:45:18 -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 1shxdK-00066D-8m for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 16:45:14 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1shxdJ-00083l-My for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 16:45:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=5xKIXkL2L+mH1wyniYSbDoShzcE1erHEix8av8ZOu5U=; b=YhLk+aJTzBwkDSbrKs1Wr/O30UgpjaTVD5Ax/B5sbqDdMESWGP7gckpmqCeCHNvv3ywv8UiK62zeLgap3/lv4UFs7xzXM+FFe4p1Byc3YU3nA9Yk/sf2Z/PkLPS9FDp/nB5d+wly8UUk0GuERSqGk/2ySpCIU0B+W97yVji5BazetYZsSb9ugo6GKXdXaOr332QhtrD2PPPzJBznsdAPiXVgpeEGz29hTUiZcetxUeghYbiyvro+UMYvPb1QlUxfhCQqIMsBFUnmyHRDIoaXs8osV1emZW9yYgtsSq2O4uBVDJQIrcyFWymbm/+gtt+YEnpZBucAEyJsLvDqIH77Jg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1shxe6-0002d8-EF for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 16:46: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, 24 Aug 2024 20:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64830 X-GNU-PR-Package: emacs Original-Received: via spool by 64830-submit@debbugs.gnu.org id=B64830.172453233610067 (code B ref 64830); Sat, 24 Aug 2024 20:46:02 +0000 Original-Received: (at 64830) by debbugs.gnu.org; 24 Aug 2024 20:45:36 +0000 Original-Received: from localhost ([127.0.0.1]:41957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shxdf-0002cI-Oq for submit@debbugs.gnu.org; Sat, 24 Aug 2024 16:45:36 -0400 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:44476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shxdc-0002c4-H3 for 64830@debbugs.gnu.org; Sat, 24 Aug 2024 16:45:35 -0400 Original-Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-714226888dfso2730907b3a.1 for <64830@debbugs.gnu.org>; Sat, 24 Aug 2024 13:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724532217; x=1725137017; darn=debbugs.gnu.org; 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=5xKIXkL2L+mH1wyniYSbDoShzcE1erHEix8av8ZOu5U=; b=TM/OMVii6C8D535erQKg3dDldK2n47gkpVFcpB/k3DOwWJkL1o+G9dPWMmDty95tzQ 58xagX+GZepuUvRvRD6GKAY9M5Ua4ACejJ3FH/LRSBf1hkwyK9qbvxQWu/DaDmvQ3f4M uABTOqzsKE8z5mTAnvVK1Q5+4/xWa1Et9rZ7j2EHIUoTJu0Zu8leW7+rRSMrrbKPO+Nq lHXXMMOfKpOs5dUOuB53kzAJ1dfl0Zy8W9p+/52oQzzaWcz1wYqrqOze54/sx4Spwa48 SKiVmxHxNFCJ3NoPoMOyBIYwIWY57YTThPBQE4O5bAhhsdHzsByf78v+/v0zP8yV5K/J thaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724532217; x=1725137017; 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=5xKIXkL2L+mH1wyniYSbDoShzcE1erHEix8av8ZOu5U=; b=rtv7TBE0vZ3eiAtJmJrhDV8D0OwrhQMQMwzj+6j5F9qRGLhUjlLBVIGQ+MbSqbrOP/ tm/NBv+lPKNiIMpvLqWGcs30CnPIreLQ33LWzqKgeFMc/+JvATUxZZojXlJrvV6IhTBt Mn4NrFLfTem7J8MZ0PxNe9vvEsmNGWZ2kp4t8l4ZyJpcyHwAPz/qh9NmDIIVh2TMabEr SuqeE67ImCl762OR/I2+Hxpsw8cvQhhvKi1AyOJIop0iiVEmYDfk9IgGQtXktHxgCLow 37vyNFmicR264Ljyu2e55x59Eg6+3luD8Tu0di61HljaJXUBBDhbUTzt2Gc0PRW1T4ko MduQ== X-Forwarded-Encrypted: i=1; AJvYcCWn+KppJrsa2SlBjswsm/YeHxDbQNr8a9uL9RUPA21AlmVfbm1YaRoI5UlZfteoL6blVacs1Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yxo8UaHejmMS7t8KK2lPSXqyfDkblgijffeHHFoMWOhZhOtdLiW XVY4rl97epUm0eGjLYM6gN2mGXhHqLiVUfswyPXWBWcCvvHy3dMy X-Google-Smtp-Source: AGHT+IEXjznyqv2klfzJDXinMFaNEx3usO1mBKO7pNIGsMuzu3VtJf5hUuR/8mPnh0LuTn92A9I2sA== X-Received: by 2002:a05:6a21:4a4b:b0:1be:c2f7:275 with SMTP id adf61e73a8af0-1cc8a0810e2mr6039429637.50.1724532217393; Sat, 24 Aug 2024 13:43:37 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:411:bac0:461c:7bfe]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7143430020fsm5029515b3a.146.2024.08.24.13.43.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Aug 2024 13:43:36 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3776.700.51) 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:290699 Archived-At: > On Aug 24, 2024, at 12:38=E2=80=AFPM, Alan Mackenzie = wrote: >=20 > Hello, Yuan. >=20 > On Sat, Aug 24, 2024 at 11:35:36 -0700, Yuan Fu wrote: >=20 >=20 >>> On Aug 19, 2024, at 8:46=E2=80=AFPM, Yuan Fu = wrote: >=20 >=20 >=20 >>>> On Aug 16, 2024, at 11:27=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >>>>> Date: Fri, 16 Aug 2024 18:06:31 +0000 >>>>> Cc: 64830@debbugs.gnu.org, casouri@gmail.com, acm@muc.de >>>>> From: Alan Mackenzie >=20 >>>>>> Maybe your Emacs 30 build is old? >=20 >>>>> No. I updated it on Wednesday, the most recent commit I have = being: >=20 >>>>> commit 9bedb957bebdca99b1bb96f58ea790e20ed48dee (HEAD -> emacs-30, >>>>> origin/emacs-30) >>>>> Author: Eli Zaretskii >>>>> Date: Wed Aug 14 11:35:48 2024 +0300 >=20 >>>>> Improve documentation of time-parsing functions >=20 >>>>> .. I will update it right now and retry .... >=20 >>>>> ..... DONE. It makes no difference. I don't understand either = why I see >>>>> this bug and you don't. >=20 >>>> Maybe try updating the C++ grammar library? >=20 >>>> Yuan, any ideas? >=20 >>> Nothing obviously wrong from a glance. I=E2=80=99m very busy = recently but I=E2=80=99ll have some time this week to look into this. = Sorry for the delay :-) >=20 >>> Yuan >=20 >> Upon closer inspection, I think this is caused by a recent change in = c-ts-mode font-lock rules, in 014aab9847a0d3d898cb8cbc7224143f2d741abb. >=20 >> Alan, could you do this: don=E2=80=99t upgrade your c++ grammar and = try this patch, if I was right it should fix your problem. Thanks! >=20 > I updated my emacs-30 branch, checked that that commit was included, = and > rebuilt it. The problem still exists on my copy of Emacs 30. :-( No no I mean apply the attached patch and see if it fixes the problem. = The commit hash I mentioned is the source of the bug, not the fix ;-) Yuan=