GNU bug report logs - #61403
30.0.50; C tree-sitter bug?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Po Lu <luangruo@HIDDEN>; dated Fri, 10 Feb 2023 15:17:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 14:37:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 09:37:21 2023
Received: from localhost ([127.0.0.1]:44438 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pRDTl-00060l-An
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 09:37:21 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42146)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pRDTj-00060Y-5J
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 09:37:19 -0500
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 <eliz@HIDDEN>)
 id 1pRDTZ-0007yF-Jw; Sun, 12 Feb 2023 09:37:13 -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=qucfgSXmrswjQYPMH49Yi7LoBH4JbTqzBz1CYSpR21c=; b=NUbNTWzUikj3
 CoWV0sjOA5HKmExjRWV1RymnQprgp0AHNfay/QJkcx7dnd8dK1Z/i4BxQSpg6BsnjR/y/N8TW6BCx
 JlKp70LGfkixY2DCVpWj3DGamBzLqPM53kHwcQcBKPT0WjQeroHCCTWgVVobX0TgykXFyd7yDe99H
 sEuxfE5b79DT9q6tFkapsibtb6eAo1tWLGCQE+kHWU4K0mPJoFw/QHF6PbBgQdbC1lkTzalAs1bH0
 16/XzSnljgNsiEU+FhnZBbLv0+ApnuvEv33vra0IZ2N/9imhLm/gP2dftm3VnKtkTmvgwvKAmxh6H
 7WJY16ECce//1mr1aiF8vw==;
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 <eliz@HIDDEN>)
 id 1pRDTZ-0007dW-2B; Sun, 12 Feb 2023 09:37:09 -0500
Date: Sun, 12 Feb 2023 16:36:43 +0200
Message-Id: <83h6vrgdc4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87fsbbynur.fsf@HIDDEN> (message from Po Lu on Sun, 12 Feb
 2023 22:12:12 +0800)
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
 <871qmv1ds5.fsf@HIDDEN> <835yc7i7nl.fsf@HIDDEN>
 <87wn4nyy3y.fsf@HIDDEN> <83sffbgj5h.fsf@HIDDEN>
 <87o7pzysah.fsf@HIDDEN> <83o7pzghli.fsf@HIDDEN> <87fsbbynur.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Po Lu <luangruo@HIDDEN>
> Cc: casouri@HIDDEN,  61403 <at> debbugs.gnu.org
> Date: Sun, 12 Feb 2023 22:12:12 +0800
> 
> static char *
> foo (void)
> {
> 
> }
> 
> ANSI C states that ``static'' is a storage class specifier, not a type
> specifier or qualifier, definitely not part of the type, which is ``char
> *''.
> 
> CC Mode normally fontifies this accordingly, in font-lock-keyword-face.

Only for types qualifiers it knows about.  There are a lot of examples
in w32*.c files, here's one (fron line 610 of w32.c):

  static BOOL WINAPI
  open_process_token (HANDLE ProcessHandle,
		      DWORD DesiredAccess,
		      PHANDLE TokenHandle)

I think we are splitting hair here.  In the code snippet you posted in
the OP, the non-fontification of 'char' is the only real issue.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 14:14:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 09:14:46 2023
Received: from localhost ([127.0.0.1]:44409 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pRD7u-0005Rr-EU
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 09:14:46 -0500
Received: from sonic302-48.consmr.mail.ne1.yahoo.com ([66.163.186.174]:38332)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1pRD7r-0005Re-Ss
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 09:14:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676211277; bh=he91Ye5JB9sBv5UT5H3PI1WUwJjc78Qrp0ugGp1YBuY=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=YrnpFOZzPhEwtbGU62FUF1QHKiuhjmHTxHu5DmUFJNME9Vs9xDVRkQzaLAQ3JarzrJ5HozYUlqxehA5eMwa/5UvZFh+kNGm5KI3HF/MEM17ijgwmplbJG1HqlTwoQRGELZchYXTYSLtI+4CoDJ+XS1Ep/85pTIH6TijamDKhNk4/P77ZZR+urGrSfO0Rg3zITU1lQT8CSxMmVskutpESrv4wU6ev6n4M+CufN31zOfpXVpO+/jHlSE+WUiN5nBDofpZ6FPsKO4baI2xbWf6WKFnm8HUcweJ4cqwQNoTojQq+cGf+FU32+M27Kge33bR31kzOPr9fr1lXpkyTKNTG0Q==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676211277; bh=e5/6EOB1sKZE/34C1iWDVfZl/pLtquT2+aZXGFm6Zj8=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=livBRGxqTAeCO/g6EymRItMLG2M1vWVRqOu9+9miT6Rhe3JDQIvgtJ0TD32w0FhQXcXDnt0yxJnCToUS0DbaY73mLG2+o+qpl4ITFTIdYHyGCCsnWHe94ed5RUpfT/Em/4zeQdLPTFrgH5fnxPfXrzMRkjL9IUVXnvy7c8yY265u5wxfKuCkYqlhjwkTAso8l0sttXlRWIPpFvlqoaHmDp8uNkTXRJwU4i94/Ky67xyHvm5TN5I7Ifm2suR7S/RdR586b2ZtfZ8zBT4OH+wFH1fcRloJFKikDQkd3/qTJry3wLPYW/bEnHDzygY1JxW2vC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0rWi.M36F.ISgtNQRycjMcDuZodoFNtIYMnpeszHk9nqT3S.KhjIs
 s90OHvAEBCG2Y3EYTEbqBjC74dbiKJeDmrMpIZSwOd3desAk24QkvGOqTA.jSRHPAza0cpfnebht
 S4Loe6XyWI.WC7dRByNoYNQ_2teX3JaxApZd2oPn3fTcvrzCqXJAs284.TutSp3qbgPh6vIG.FJ4
 MeawL7s_y4eIZArPHZoUakPPya7yjRNKfkCDZFlRZLUkIJArKiWLbhIc9J4Jh6tmxSZM-
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sun, 12 Feb 2023 14:14:37 +0000
Received: by hermes--production-sg3-9fc5746c8-28mz5 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 049fb2806d749f4fda658e0ac63ab4ec; 
 Sun, 12 Feb 2023 14:12:34 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
In-Reply-To: <83o7pzghli.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 12 Feb
 2023 15:04:41 +0200")
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
 <871qmv1ds5.fsf@HIDDEN> <835yc7i7nl.fsf@HIDDEN>
 <87wn4nyy3y.fsf@HIDDEN> <83sffbgj5h.fsf@HIDDEN>
 <87o7pzysah.fsf@HIDDEN> <83o7pzghli.fsf@HIDDEN>
Date: Sun, 12 Feb 2023 22:12:12 +0800
Message-ID: <87fsbbynur.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21183
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 616
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> It actually ``static'' on TEST builds or nothing at all, not part of the
>> type.
>
> The above actually means that it _is_ part of the type.
>
>> It ought not to be fontified, just as we don't fontify _Noreturn
>> or __attribute__ as types.
>
> In 'static char', "static" is part of the type.

In a declaration like so:

static char *
foo (void)
{

}

ANSI C states that ``static'' is a storage class specifier, not a type
specifier or qualifier, definitely not part of the type, which is ``char
*''.

CC Mode normally fontifies this accordingly, in font-lock-keyword-face.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 13:05:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 08:05:27 2023
Received: from localhost ([127.0.0.1]:44340 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pRC2p-0003bQ-4j
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 08:05:27 -0500
Received: from eggs.gnu.org ([209.51.188.92]:37160)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pRC2n-0003bD-4e
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 08:05:25 -0500
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 <eliz@HIDDEN>)
 id 1pRC2h-0007LQ-Tm; Sun, 12 Feb 2023 08:05:19 -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=oo1pNfHeAOA/je3C5Xkq9SHm9HmjU5GHg3HmDhc8rfk=; b=jXJeCGPfvObl
 5TeAehtR4r/Oq9Eq/LPCuL42l9dGXpzsU9+w9RoSkhF7hfWFenvutT4oU+WatM6WtgPj50nBpVl82
 aKaMLgHvLaMdu5K4zaziRWhC5ywYI3fO8W2RliS9Wq9NV5r5REcij4okXXGGWSSGQ9sOVaaecaHVJ
 sZrn6X2gVhMNz2n/IMRQiSBeqn+yf9xHl1SyJCsEzfxDRg6Pyu23SY2DZ/d/z23Fbz6EeSdOCzXMr
 3rR1l86b5GUESUDUjTQRH+Uvu/CV7mVTGq82jR6lLVKeb9BY2smEgOGh5O3nJ5bN3bXMcc0OmsDWv
 mKas8Ggs8xaIL20KaDC8ow==;
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 <eliz@HIDDEN>)
 id 1pRC2V-0004t0-Uv; Sun, 12 Feb 2023 08:05:19 -0500
Date: Sun, 12 Feb 2023 15:04:41 +0200
Message-Id: <83o7pzghli.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87o7pzysah.fsf@HIDDEN> (message from Po Lu on Sun, 12 Feb
 2023 20:36:22 +0800)
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
 <871qmv1ds5.fsf@HIDDEN> <835yc7i7nl.fsf@HIDDEN>
 <87wn4nyy3y.fsf@HIDDEN> <83sffbgj5h.fsf@HIDDEN> <87o7pzysah.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Po Lu <luangruo@HIDDEN>
> Cc: casouri@HIDDEN,  61403 <at> debbugs.gnu.org
> Date: Sun, 12 Feb 2023 20:36:22 +0800
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > 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.
> 
> It actually ``static'' on TEST builds or nothing at all, not part of the
> type.

The above actually means that it _is_ part of the type.

> It ought not to be fontified, just as we don't fontify _Noreturn
> or __attribute__ as types.

In 'static char', "static" is part of the type.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 12:38:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 07:38:51 2023
Received: from localhost ([127.0.0.1]:44308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pRBd4-0002p4-VP
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 07:38:51 -0500
Received: from sonic313-35.consmr.mail.ne1.yahoo.com ([66.163.185.58]:42166)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1pRBd3-0002op-Qs
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 07:38:50 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676205523; bh=RnlMN7fBG0int0M9Eb8gkXNM+VtafEW9/+AGu7GkbA8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=OuFQ8XdbeYopb9prnKfK8JejIcdQMXpZFMqkjhE3nVCDpIUhK7CD1jZbh/G7gPr0RE/7ETFn92ENFW08RijOmvLXEcRvmH6MU3upsaNM6qp+fekvLPedtwnWsnEVRm9j1iP9BwdCMmzaWTYsDD2cd6xDjQXU8oSnuoPLtQxP+iB9OqndDxuC1weEvvvpG97kL/SY3mxEr19slVKnFLEoz0qjYa24NqwEARTIwXK0JyxBuIz2Cjr9voTfh9SWL9/OyVtrL6sg0Ix1s1Kdxjphmaoaoybd7kU2qVO0ZKQWVh0aZjItTWE7pUYz3fhriNNfXRp7QkCuHCH4/ILGoT5THQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/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AcJYoWFIcNOlKkZIsElXhRvhpQ
 z7GoxCskF4wRzRqs0uR9NRtHrXnuspDJbMDY_wwt2vr5sHPKj68bDNpeXJgCJtrSxjG2LBiCE9pA
 Ia8fxcS_rv74EKQFveO2Mzc9F7ExLrywxVSvTJLjNehjbjH2V8QGAVKixfC1MgbBxtL0QIdbTpK9
 mRv5I6Ww2J.w9NhpPGs8J1qOyDTdCnY9b_3.5l6vjBDso3nPtC.mwV9RhGxnuXcujaou3H6NScDO
 cils2FdEy272MP6IVsNi1NwKP9bYwcuFu8f1HEYNXgwh_F7HfcU1wANvJJdWT8.vkUTEMagDrldw
 ToAHCNs6qtO7zgibSIwnePAFtx7uPnoRZurCoz.zsuvPZ8kGkEhEuSAuSiCOTvY7Xj2bsDbs4DHL
 1faH2ZrPLGcEdbYqJT5c0k71ntYi3V8LElTFRS7W.9EzDc8dPK6n4VoEfbPtibsOJnShtlPn.FZg
 gQ9Y1LpHotwtVogi9Anhzkx3a1G.Bkil76kVYd0vUQvxPc5GOHhp4sLiVn8lZcg.2Xwqa0Noiczs
 .hWNq_H5n7Mi9ehVzpyvEGRTg5IEuQTpneIlLgiQj0F6gxRYx.N0ed8pNQtn6LcjhltAJMNf6BTz
 KA8kHgYcFDeUEH0lWqLIyl.hfb1v9hQ1HXXGdS4u1gcJWimiL4B5N39_2S8N8P45GTQ--
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic313.consmr.mail.ne1.yahoo.com with HTTP; Sun, 12 Feb 2023 12:38:43 +0000
Received: by hermes--production-sg3-9fc5746c8-2jxhw (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID d1afb479ed414fa7c91e5fd872c8fff5; 
 Sun, 12 Feb 2023 12:36:40 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
In-Reply-To: <83sffbgj5h.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 12 Feb
 2023 14:31:06 +0200")
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
 <871qmv1ds5.fsf@HIDDEN> <835yc7i7nl.fsf@HIDDEN>
 <87wn4nyy3y.fsf@HIDDEN> <83sffbgj5h.fsf@HIDDEN>
Date: Sun, 12 Feb 2023 20:36:22 +0800
Message-ID: <87o7pzysah.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21183
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1275
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Po Lu <luangruo@HIDDEN>
>> Cc: casouri@HIDDEN,  61403 <at> debbugs.gnu.org
>> Date: Sun, 12 Feb 2023 18:30:41 +0800
>> 
>> Eli Zaretskii <eliz@HIDDEN> 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.

It actually ``static'' on TEST builds or nothing at all, not part of the
type.  It ought not to be fontified, just as we don't fontify _Noreturn
or __attribute__ as types.

>> > 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.

Yes, please.  Also the bit about _Noreturn.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 12:31:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 07:31:40 2023
Received: from localhost ([127.0.0.1]:44289 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pRBW8-0002cW-BY
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 07:31:40 -0500
Received: from eggs.gnu.org ([209.51.188.92]:53570)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pRBW6-0002cI-BP
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 07:31:38 -0500
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 <eliz@HIDDEN>)
 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==;
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 <eliz@HIDDEN>)
 id 1pRBW0-0008SC-EL; Sun, 12 Feb 2023 07:31:32 -0500
Date: Sun, 12 Feb 2023 14:31:06 +0200
Message-Id: <83sffbgj5h.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87wn4nyy3y.fsf@HIDDEN> (message from Po Lu on Sun, 12 Feb
 2023 18:30:41 +0800)
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
 <871qmv1ds5.fsf@HIDDEN> <835yc7i7nl.fsf@HIDDEN>
 <87wn4nyy3y.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Po Lu <luangruo@HIDDEN>
> Cc: casouri@HIDDEN,  61403 <at> debbugs.gnu.org
> Date: Sun, 12 Feb 2023 18:30:41 +0800
> 
> Eli Zaretskii <eliz@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 10:33:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 05:33:11 2023
Received: from localhost ([127.0.0.1]:44127 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pR9fS-0004pU-Ux
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 05:33:11 -0500
Received: from sonic317-3.consmr.mail.ne1.yahoo.com ([66.163.184.230]:33050)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1pR9fQ-0004pI-SP
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 05:33:09 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676197981; bh=jkymiS0Qx1wbsMrQUzSuxbjjgqZnl63JzzDib4hvcGk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=RGFa1J+CkOEyviyiEeVQ0Dq61sZvmCwEobOZLX8Zd2PLEfwt4kM4GFkfOPr2LslJ3NHC9a/fwo88ly4I5Eqrj0oMVQr21+stGGy28KgVNPP9yha6UjjjgkU9qa8SSRmJ9pAgBEQAsKKKH1+nyCCrKXblNox4dquOY7TmvtzqHvcAtHLovKoB5aRHnTkEOmNY/MStScsd9HMRf23xe4YoJTxEFgN2QQpaWS7PTvc3XWmfvlxkcsezyomKq69yHEIWq19XVoysSwJpEvlmCl/syzvg5nEv9o9I4rzJvRSs4MG01zF6/V3FAXsd7jDmZaRWdmRNuGrxb7NdqlTwKKHfUA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676197981; bh=o23JebKAOThMOuO3dOrFVG23MMOuH1Tg/JScB7wbH0H=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=pY3/ah58hMJb9Lh/FVJFs2K2L6kxA6XNBAsNZUeU7V1+KMiTWNDmjuCPljwps8+OT8l6SK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gkwnQmE0zO23GKMrAFra9T9auQK_.MEagm3N77NyjHIlkjhQK7Gm2tgq37C9Wss75ZTWTj7vEvmq
 GOEsRehR3oJ5kGHuExVjHqcQJmQulm8OPvxDVGTlm9wjFH_ke.vYRDAHD95zKYUrEiacvENByDEG
 dzIuQiLfTDUNLNbgcK3F75mtqX_LRoF8al3kT4L9L8jQbjUYtY1_3BAgCZjnrne_iQZelU8ajjGA
 V.8nE5hFw6.JlAbVyBYzRikt3sa2rU5reUhjA_7AffnzzBIwjAydw4GyeaqdpIXrSjOMVp1AX97k
 hmJHDWyA.Us3WsCxkNSvmpM3IRcRVSkRYKcIE4Yja5_dwz0CRffLh4oeYT75TOHKsUFYH.3XZmRD
 JmPBg8HB5LApP7BdSAXEELBgo0E3xZMpzumN.2L9f1JoByp9DgmrIk6_5lphwvWP5MbgjoecjhrE
 vTNHnMxPY9t8vnX0SK8xQoWz7pMu1ehO1FaeQ6Hxc_sQpH5TwT4wOzNaLTFcbUYHDbA--
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sun, 12 Feb 2023 10:33:01 +0000
Received: by hermes--production-sg3-9fc5746c8-ltdwf (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 9ef5b80fc02e22d78447cb3aeb907483; 
 Sun, 12 Feb 2023 10:30:58 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
In-Reply-To: <835yc7i7nl.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 12 Feb
 2023 10:56:30 +0200")
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
 <871qmv1ds5.fsf@HIDDEN> <835yc7i7nl.fsf@HIDDEN>
Date: Sun, 12 Feb 2023 18:30:41 +0800
Message-ID: <87wn4nyy3y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.21183
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2490
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Cc: 61403 <at> debbugs.gnu.org
>> Date: Sun, 12 Feb 2023 16:36:10 +0800
>> From:  Po Lu via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>> 
>> Yuan Fu <casouri@HIDDEN> writes:
>> 
>> > Po Lu <luangruo@HIDDEN> writes:
>> >
>> >> Go to sfnt.c in the feature/android branch, and turn on c-ts-mode.
>> >>
>> >> Then, go to line 10754, around which should be the function definition:
>> >>
>> >> /* Load the simple glyph GLYPH into the specified INTERPRETER, scaling
>> >>    it up by INTERPRETER's scale, and run its glyph program if
>> >>    present.  Use the unscaled metrics specified in METRICS.
>> >>
>> >>    Upon success, return NULL and the resulting points and contours in
>> >>    *VALUE.  Else, value is the reason interpretation failed.  */
>> >>
>> >> TEST_STATIC const char *
>> >> sfnt_interpret_simple_glyph (struct sfnt_glyph *glyph,
>> >> 			     struct sfnt_interpreter *interpreter,
>> >> 			     struct sfnt_glyph_metrics *metrics,
>> >> 			     struct sfnt_instructed_outline **value)
>> >> {
>> >>   size_t zone_size, temp, outline_size, i;
>> >>   struct sfnt_interpreter_zone *zone;
>> >>   struct sfnt_interpreter_zone *volatile preserved_zone;
>> >>   sfnt_f26dot6 phantom_point_1_x;
>> >>
>> >> `TEST_STATIC' is fontified as a type.  Perhaps tree-sitter needs
>> >> something along the lines of `c-noise-macros'?
>> >
>> > Would it be reasonable to assume that all caps "type" are almost always
>> > macros? If it is, we can optionally defontify these kind of "types".
>> 
>> Not really, because an extremely common type is:
>> 
>>     PTR_T *ptr;
>> 
>> where ``PTR_T'' is used to represent pointers on systems that may lack
>> properly working pointers to void.
>> 
>> The standard library FILE * is also one such type with a capitalized
>> name.
>
> 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.

> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 08:57:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 03:57:07 2023
Received: from localhost ([127.0.0.1]:44022 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pR8AV-0008T6-Ih
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 03:57:07 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50452)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pR8AR-0008SZ-LI
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 03:57:06 -0500
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 <eliz@HIDDEN>)
 id 1pR8AM-0007cC-E4; Sun, 12 Feb 2023 03:56:58 -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=kf812SMAE3YSpWAQ0XNBta0slSt9Xzb+en9oqwrDB/s=; b=WzVvtmHOMYSL
 UhWUL/DK6tVmP4mRxfZH+oQe7S3h3PSMhWXBW5JE8iBtA7UTKeTpfEdMjDV7572QWFmiDZO9cRBgD
 3TWf3j8RhTNoeizSVvhBFCY5iu/prpxHrHjQ7/6rcZR1FJz+X1oPt/XJxfXUw7aAWJ2sdMDlx2SON
 gdK1+3YCuhMtI6YF10n/BBFS/l59C+PIpYck6pauyLPkTKywVif6RorkzQvIhNkiFIQDm0OoI7Huv
 TxOZ9RcG3ufoRzsNAPiD+q6/L495rR8sVeXzum2w/smMf5wtiepa2Q/haWpL1h1Z0a4xcwWYJa3lZ
 YYIbxP5fHsT/rbdM7hSy8A==;
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 <eliz@HIDDEN>)
 id 1pR8AL-0008L0-LG; Sun, 12 Feb 2023 03:56:57 -0500
Date: Sun, 12 Feb 2023 10:56:30 +0200
Message-Id: <835yc7i7nl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <871qmv1ds5.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
 <871qmv1ds5.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org, casouri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 61403 <at> debbugs.gnu.org
> Date: Sun, 12 Feb 2023 16:36:10 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> Yuan Fu <casouri@HIDDEN> writes:
> 
> > Po Lu <luangruo@HIDDEN> writes:
> >
> >> Go to sfnt.c in the feature/android branch, and turn on c-ts-mode.
> >>
> >> Then, go to line 10754, around which should be the function definition:
> >>
> >> /* Load the simple glyph GLYPH into the specified INTERPRETER, scaling
> >>    it up by INTERPRETER's scale, and run its glyph program if
> >>    present.  Use the unscaled metrics specified in METRICS.
> >>
> >>    Upon success, return NULL and the resulting points and contours in
> >>    *VALUE.  Else, value is the reason interpretation failed.  */
> >>
> >> TEST_STATIC const char *
> >> sfnt_interpret_simple_glyph (struct sfnt_glyph *glyph,
> >> 			     struct sfnt_interpreter *interpreter,
> >> 			     struct sfnt_glyph_metrics *metrics,
> >> 			     struct sfnt_instructed_outline **value)
> >> {
> >>   size_t zone_size, temp, outline_size, i;
> >>   struct sfnt_interpreter_zone *zone;
> >>   struct sfnt_interpreter_zone *volatile preserved_zone;
> >>   sfnt_f26dot6 phantom_point_1_x;
> >>
> >> `TEST_STATIC' is fontified as a type.  Perhaps tree-sitter needs
> >> something along the lines of `c-noise-macros'?
> >
> > Would it be reasonable to assume that all caps "type" are almost always
> > macros? If it is, we can optionally defontify these kind of "types".
> 
> Not really, because an extremely common type is:
> 
>     PTR_T *ptr;
> 
> where ``PTR_T'' is used to represent pointers on systems that may lack
> properly working pointers to void.
> 
> The standard library FILE * is also one such type with a capitalized
> name.

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.

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.

Or what am I missing?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 08:38:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 03:38:46 2023
Received: from localhost ([127.0.0.1]:44001 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pR7sk-0007wt-Il
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 03:38:46 -0500
Received: from sonic317-3.consmr.mail.ne1.yahoo.com ([66.163.184.230]:40371)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1pR7sh-0007wY-4X
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 03:38:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676191115; bh=O9yighJ8mPzEd87SHVF6S80ReOWNx9Y0AcPrzxWBevc=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=XD1Te7fd8uLF3JHopfj4JfmYYIzqCsZ2gqqjD9+rwOzcx6Dq7imJUfBjOLvcHlJYKA7bOtsy1AwGLa4GQzH9WF1rSjjRmOacFm1iCEePjwriJO8F7NBX7qOEpipyUwwpDiG3YXkjIBfuUBzi8Y9pq5K8C4IBRE47yRE62TJe0Kn24WZOkdWfUyWyw697F0S1kW+RK2fU9rDmtcgPxJdnWVFbnHI0f+mHMT4fWlRFLq07mqXZLitS2wLDoY5FYUA9iov2+1vKJ7OIRFDmcCezLwak/F1DIV7BfwqcCFOjhTrMeRrsHFzbFcSqkSUPMtk3/7Phw7NV+rW18nNLIyMOSg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676191115; bh=/lMGwYHStXF1ONJJSkNB6NyUhaMr6AWtK7USMby44L2=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=j+nIueOUNuLCs5Outsy0HfYttimhFSrsgBmwIlAUiTB773A8pYUGM+sjDIMR5S6idD/teM7j0ykXZ5fsVGd362Z/770VEserjn5HxzZY7TpvQbWQ5X1ESgGgIPz83f9fGeM48ScZQ7f28CepB2++kL02szmOnJEPJURMWF0o5auB88wPT8qbd70Ed8ajAOkBnDFBW7iFWkChI6Sxo33IT8wUBI9J4sPuV49y7wxLKrVgkGvRCZQwQYoSkgZQxNcVDi/WWKtIegcEqcotlzHUUaqO3oHpEgyWdQgmDY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BtsKIHKo9yhUX9TXUqc3bIJ6JljhGxj9IGgYfrv3a
 F1QXuT0WZc3PhCBEfGW6TQAwx7XRQOBmh3G1GyyFeFDE8DJqNuA25eiSmTvYhMyjiVTQm1wD439a
 VzKfFpDK9RIYU0DKTmuky0S9ZZlkmJWoachjIIXTLMRFVWK6DtumL9ci.LJzllvsSEu1d.mcFRUr
 n7w9YFo00cABc.xUgeOVTmw7xUTQqCCZs4AYeuRtpBgyl4sBKdUviJlAvhj72AQ2OdJ8VWyI.YFP
 wG43X_Ih2g6i44WmvaByiROL5SY7CWb520IYK.nb8CFJGioHZc85Ycoo1pMxcVC5J_g--
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sun, 12 Feb 2023 08:38:35 +0000
Received: by hermes--production-sg3-9fc5746c8-z4gft (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 5e4f2efab8504a97215fd23ca7739581; 
 Sun, 12 Feb 2023 08:36:33 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Yuan Fu <casouri@HIDDEN>
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
In-Reply-To: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN> (Yuan Fu's
 message of "Sun, 12 Feb 2023 00:27:18 -0800")
References: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
Date: Sun, 12 Feb 2023 16:36:10 +0800
Message-ID: <871qmv1ds5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.21183
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1906
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Yuan Fu <casouri@HIDDEN> writes:

> Po Lu <luangruo@HIDDEN> writes:
>
>> Go to sfnt.c in the feature/android branch, and turn on c-ts-mode.
>>
>> Then, go to line 10754, around which should be the function definition:
>>
>> /* Load the simple glyph GLYPH into the specified INTERPRETER, scaling
>>    it up by INTERPRETER's scale, and run its glyph program if
>>    present.  Use the unscaled metrics specified in METRICS.
>>
>>    Upon success, return NULL and the resulting points and contours in
>>    *VALUE.  Else, value is the reason interpretation failed.  */
>>
>> TEST_STATIC const char *
>> sfnt_interpret_simple_glyph (struct sfnt_glyph *glyph,
>> 			     struct sfnt_interpreter *interpreter,
>> 			     struct sfnt_glyph_metrics *metrics,
>> 			     struct sfnt_instructed_outline **value)
>> {
>>   size_t zone_size, temp, outline_size, i;
>>   struct sfnt_interpreter_zone *zone;
>>   struct sfnt_interpreter_zone *volatile preserved_zone;
>>   sfnt_f26dot6 phantom_point_1_x;
>>
>> `TEST_STATIC' is fontified as a type.  Perhaps tree-sitter needs
>> something along the lines of `c-noise-macros'?
>
> Would it be reasonable to assume that all caps "type" are almost always
> macros? If it is, we can optionally defontify these kind of "types".

Not really, because an extremely common type is:

    PTR_T *ptr;

where ``PTR_T'' is used to represent pointers on systems that may lack
properly working pointers to void.

The standard library FILE * is also one such type with a capitalized
name.

>>
>> Likewise for _Noreturn:
>>
>> _Noreturn static void
>> sfnt_interpret_trap (struct sfnt_interpreter *interpreter,
>> 		     const char *reason)
>> {
>>
>> _Noreturn is a keyword in 2011 Standard C.  I think the tree-sitter
>> parser definition files should be updated to understand it.
>
> Makes sense. I can file an issue on tree-sitter-c=E2=80=99s repo.

Please do so, and thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at 61403 <at> debbugs.gnu.org:


Received: (at 61403) by debbugs.gnu.org; 12 Feb 2023 08:27:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 12 03:27:37 2023
Received: from localhost ([127.0.0.1]:43977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pR7hx-0007dC-G3
	for submit <at> debbugs.gnu.org; Sun, 12 Feb 2023 03:27:37 -0500
Received: from mail-pj1-f42.google.com ([209.85.216.42]:43650)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <casouri@HIDDEN>) id 1pR7hv-0007cv-Cp
 for 61403 <at> debbugs.gnu.org; Sun, 12 Feb 2023 03:27:35 -0500
Received: by mail-pj1-f42.google.com with SMTP id
 d13-20020a17090ad3cd00b0023127b2d602so9541989pjw.2
 for <61403 <at> debbugs.gnu.org>; Sun, 12 Feb 2023 00:27:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:from:to:cc:subject:date:message-id
 :reply-to; bh=2ZNyif7KBnRW1WFOSK3eNQKpp3IRD4s7Se7DSqmABXk=;
 b=CeZyi0m/r562A10uYVHtQL9467fvpWezIeFJdPPKwGAgLQWzQ/iN0H11szj2m715LC
 g8fvsiJmJvHDskJSVuUeLzQLUITBcPSD6JolOkSvMStQDc65r7H9tbBMu0UL/ujM5PY6
 zUmF/ElD1Hw3xgom+td/PaMi9JVC6SmHfoPjQuhLeipgI+ZrFUJGNAJ2wRGHkyJdEonO
 yUlDLCA2qLL6ye9U1kk0CDCAuO1sbDDqXsnPQYj5siqCL/F5Lfy8pey8JYPsNkpwKrg4
 EP7Nr0QLR5qr4CIzBklzhE2E1uaujT3SsDtWZZCry+yzWPmTWixf+hImQxPb+WOvpAkS
 EW2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=2ZNyif7KBnRW1WFOSK3eNQKpp3IRD4s7Se7DSqmABXk=;
 b=xpBw3kKneJnIN0yJj5Lxvsdl40pWeHqT/mrNj61rLhdbjygV2bUNREFxAHGguboAGz
 JhIT5WeaNWtCPvBBEFZdOYwYy1Yq9AfWY9iietVWE9JzfjJpoejC8d31ZW4VchhG5Bdw
 ruuqEkN7lPpBX4VyQyrTVQ745lM7Z+2/QQ2YuKX4bLyp7DRlgnxwb3q4X9zHF7q2HwWt
 aLXj19D6qDHx+pt/sm+pJn6l1m60h5Fen4YOOMDvo0ErzUABV6/oRgHwz+tCOa7/7PS9
 sU7JhmsrZ5/rxUlwkPQUWFczdppjQSWQUEpI2rmq91MZgc/DOmMO0yku4x4y3xUtYFdZ
 D2Kg==
X-Gm-Message-State: AO0yUKUm+HuuwIDfCbcYYhwn3atiot/pU53YMQM2gpbc3j0kUYcn3FFG
 py95LdqrFzKTgmyi+ntcrU4=
X-Google-Smtp-Source: AK7set8XGao61g/6k3eCm0XGyIyFPA5qkN9kS4eZwkJUg4xMT5mNsoXyt9UAwNRdC8fEJz7mWsLGpg==
X-Received: by 2002:a17:902:c111:b0:198:ef76:ce98 with SMTP id
 17-20020a170902c11100b00198ef76ce98mr15972688pli.54.1676190449645; 
 Sun, 12 Feb 2023 00:27:29 -0800 (PST)
Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com.
 [172.117.161.177]) by smtp.gmail.com with ESMTPSA id
 v10-20020a1709028d8a00b00186b7443082sm6014039plo.195.2023.02.12.00.27.28
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 12 Feb 2023 00:27:29 -0800 (PST)
From: Yuan Fu <casouri@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\))
Subject: Re: bug#61403: 30.0.50; C tree-sitter bug?
Message-Id: <97E6246E-51E7-4F41-BCD0-AF63834FF3BD@HIDDEN>
Date: Sun, 12 Feb 2023 00:27:18 -0800
To: Po Lu <luangruo@HIDDEN>
X-Mailer: Apple Mail (2.3731.300.101.1.3)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61403
Cc: 61403 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Po Lu <luangruo@HIDDEN> writes:

> Go to sfnt.c in the feature/android branch, and turn on c-ts-mode.
>
> Then, go to line 10754, around which should be the function =
definition:
>
> /* Load the simple glyph GLYPH into the specified INTERPRETER, scaling
>    it up by INTERPRETER's scale, and run its glyph program if
>    present.  Use the unscaled metrics specified in METRICS.
>
>    Upon success, return NULL and the resulting points and contours in
>    *VALUE.  Else, value is the reason interpretation failed.  */
>
> TEST_STATIC const char *
> sfnt_interpret_simple_glyph (struct sfnt_glyph *glyph,
> 			     struct sfnt_interpreter *interpreter,
> 			     struct sfnt_glyph_metrics *metrics,
> 			     struct sfnt_instructed_outline **value)
> {
>   size_t zone_size, temp, outline_size, i;
>   struct sfnt_interpreter_zone *zone;
>   struct sfnt_interpreter_zone *volatile preserved_zone;
>   sfnt_f26dot6 phantom_point_1_x;
>
> `TEST_STATIC' is fontified as a type.  Perhaps tree-sitter needs
> something along the lines of `c-noise-macros'?

Would it be reasonable to assume that all caps "type" are almost always
macros? If it is, we can optionally defontify these kind of "types".

>
> Likewise for _Noreturn:
>
> _Noreturn static void
> sfnt_interpret_trap (struct sfnt_interpreter *interpreter,
> 		     const char *reason)
> {
>
> _Noreturn is a keyword in 2011 Standard C.  I think the tree-sitter
> parser definition files should be updated to understand it.

Makes sense. I can file an issue on tree-sitter-c=E2=80=99s repo.

Yuan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Feb 2023 15:16:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 10 10:16:30 2023
Received: from localhost ([127.0.0.1]:37908 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pQV8Y-0007J5-CN
	for submit <at> debbugs.gnu.org; Fri, 10 Feb 2023 10:16:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:49508)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1pQV8V-0007Iw-MT
 for submit <at> debbugs.gnu.org; Fri, 10 Feb 2023 10:16:29 -0500
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 <luangruo@HIDDEN>)
 id 1pQV8V-000719-GV
 for bug-gnu-emacs@HIDDEN; Fri, 10 Feb 2023 10:16:27 -0500
Received: from sonic309-47.consmr.mail.ne1.yahoo.com ([66.163.184.173])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>)
 id 1pQV8S-0001SQ-Vp
 for bug-gnu-emacs@HIDDEN; Fri, 10 Feb 2023 10:16:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676042180; bh=8ajrRHNeg37o/9V3FUdeqeMllkDlIdXCoPuOz1YP8pk=;
 h=From:To:Subject:Date:References:From:Subject:Reply-To;
 b=P+ajCrUBASMfad6DDGYNpUeRnni3NcPQISLbVZp4srM6qgFr+GNQBvsfbmr3uxjcORrz2kIZzyWilGokxMYcm9ROCfxa7tqEUx8nydif1dF+2vIbYnRVucdrjc1lhfln5Zgl/8JjSdNAoFbsYo12DeuS6SEZqJQh2TbFfd3+X9HmSl3S/hNlVwqetfyBzw1ic9I3uNeb00rrOPrKHuuaYDVFPkQefhRlKW/sG1T3lII6hJshsVQT6KblMJpZyVvW2usdrkZdaJgssSrxUehibpRklDTp3WQ3eGVZsuZQqlyeos8EFibb/Rjy30Pnp5bOo+7odxSkH+zqIzDfb8v31w==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1676042180; bh=FgLrpeeLu3M3NqINwNYq+c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0ORfziak_ZfomY0CnJ_MxJ2
 RD6ixP2vX3buhQ1e6hVW6fYRq36lgxtk.FjUzepHCW9XByM4fPQ7i8Kgz790ArdZ7yojrsL8ozbd
 EodlFgZ6S6AnRLtAII.NAoB_1vATxNjY3.8R7tq4DwytdfHHkKms7Qpy3c4tygi34VrlWPSqgH6d
 oBQr.x14E8PnnMmzkZaYMMa5p5OY4eRCrntXM3.ETR2qI5bico2wDJjluWwRRhDRrg9lWeroSmvB
 4i54D5MxpAflARelGgEfH8O8hNQa8b272G0PrylVgeds33XEhQ7NHtxn6OYsNx8n8ppfbWqyrMk_
 CIZTshmT946rNPQhXy1nugwARHcSDH2hLiX32JWsxMFFAJTL4AYl6fffBWbJZEmHyvwHUiBVRFLM
 1E8fS7BxjeYu090rAIHcY7LDaVYzTDkhcVdXAxTlUfiC2Z6uzPD3ciEXkDTxL.BlVFyX9jbpO_1y
 o_8q5dtul0ZJVqVIRDsHeNz2KKDUKe4.fB2o9FqRP7eXePpl9Id5dueDLQ_lPUWHMmn6Rnji2UTu
 7FpQdUpnc4JCZDx0NWzqbBMdfcoA_zTNJMegJRRXxaM9APy5RUFdGu_A214lKKU1mt3cE
X-Sonic-MF: <luangruo@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic309.consmr.mail.ne1.yahoo.com with HTTP; Fri, 10 Feb 2023 15:16:20 +0000
Received: by hermes--production-sg3-9fc5746c8-r2vxw (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 13628e0f3b3a1f87377f71a513aab95b; 
 Fri, 10 Feb 2023 15:14:16 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; C tree-sitter bug?
Date: Fri, 10 Feb 2023 23:14:10 +0800
Message-ID: <87h6vt364d.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
References: <87h6vt364d.fsf.ref@HIDDEN>
X-Mailer: WebService/1.1.21161
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 4613
Received-SPF: pass client-ip=66.163.184.173; envelope-from=luangruo@HIDDEN;
 helo=sonic309-47.consmr.mail.ne1.yahoo.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.6 (-)


Go to sfnt.c in the feature/android branch, and turn on c-ts-mode.

Then, go to line 10754, around which should be the function definition:

/* Load the simple glyph GLYPH into the specified INTERPRETER, scaling
   it up by INTERPRETER's scale, and run its glyph program if
   present.  Use the unscaled metrics specified in METRICS.

   Upon success, return NULL and the resulting points and contours in
   *VALUE.  Else, value is the reason interpretation failed.  */

TEST_STATIC const char *
sfnt_interpret_simple_glyph (struct sfnt_glyph *glyph,
			     struct sfnt_interpreter *interpreter,
			     struct sfnt_glyph_metrics *metrics,
			     struct sfnt_instructed_outline **value)
{
  size_t zone_size, temp, outline_size, i;
  struct sfnt_interpreter_zone *zone;
  struct sfnt_interpreter_zone *volatile preserved_zone;
  sfnt_f26dot6 phantom_point_1_x;

`TEST_STATIC' is fontified as a type.  Perhaps tree-sitter needs
something along the lines of `c-noise-macros'?

Likewise for _Noreturn:

_Noreturn static void
sfnt_interpret_trap (struct sfnt_interpreter *interpreter,
		     const char *reason)
{

_Noreturn is a keyword in 2011 Standard C.  I think the tree-sitter
parser definition files should be updated to understand it.


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu) of 2023-02-10 built
 on RepoWS1
Repository revision: 680bc20553ebf01375ab7957b6f0be066335fd6e
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101099
System Description: Fedora Linux 37 (Workstation Edition)

Configured using:
 'configure --with-x --with-x-toolkit=no --without-cairo
 --with-dumping=unexec --cache-file=/tmp/ccache'

Configured features:
ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2
LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY OLDXMENU PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER UNEXEC WEBP X11 XDBE XFT
XIM XINPUT2 XPM ZLIB

Important settings:
  value of $LANG: en_GB.utf8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix

Major mode: C

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny rfc822
mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util
text-property-search time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils mule-util display-line-numbers
c-ts-mode cl-extra help-mode warnings icons c-ts-common treesit cl-seq
vc bug-reference byte-opt gv bytecomp byte-compile cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
misearch multi-isearch vc-git diff-mode easy-mmode vc-dispatcher
dired-aux cl-loaddefs cl-lib dired dired-loaddefs shell subr-x pcomplete
comint ansi-osc ansi-color ring rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting xinput2 x
multi-tty make-network-process emacs)

Memory information:
((conses 16 222669 14119)
 (symbols 48 25643 0)
 (strings 32 45435 2367)
 (string-bytes 1 1362327)
 (vectors 16 26563)
 (vector-slots 8 868096 36136)
 (floats 8 84 104)
 (intervals 56 21736 0)
 (buffers 984 23))




Acknowledgement sent to Po Lu <luangruo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#61403; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 4 Sep 2023 09:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.