From unknown Wed Jun 18 23:04:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78129 <78129@debbugs.gnu.org> To: bug#78129 <78129@debbugs.gnu.org> Subject: Status: [PATCH] 31.0.50; python-ts-mode fontification does not handle normal python constructs Reply-To: bug#78129 <78129@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:04:00 +0000 retitle 78129 [PATCH] 31.0.50; python-ts-mode fontification does not handle= normal python constructs reassign 78129 emacs submitter 78129 Jostein Kj=C3=B8nigsen severity 78129 normal tag 78129 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 29 05:41:19 2025 Received: (at submit) by debbugs.gnu.org; 29 Apr 2025 09:41:19 +0000 Received: from localhost ([127.0.0.1]:49566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9hSp-0001KP-2v for submit@debbugs.gnu.org; Tue, 29 Apr 2025 05:41:19 -0400 Received: from lists.gnu.org ([2001:470:142::17]:35476) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9hSj-0001IT-Br for submit@debbugs.gnu.org; Tue, 29 Apr 2025 05:41:15 -0400 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 1u9hSN-0002un-VZ for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2025 05:40:54 -0400 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u9hSI-0008DD-NN for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2025 05:40:51 -0400 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id F36C325401C6 for ; Tue, 29 Apr 2025 05:40:43 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 29 Apr 2025 05:40:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1745919643; x=1746006043; bh=UAUU8hAFAE w3KNjv8JTNEJ86H4jCFTDa5cN7PhElkUM=; b=mFCd/buktoDj1suApqngXZZRKa U7Fmk1IYBKPox48RaUaK+QSPk3+sulTJdSZNHo+/1Kcm0fuHu4jP1ARudXLw5mOf Oaffq3c4T9+kIq7TKHTZNlTuESV1l9P1I3HWzlputQulwlX5r34XpcQQ9P0Eg6OU uxne3KJDJN2iYBR1I+bkTFNSyDH+EdpgH1CH2WniKIs+UAYDxSndBGkm7pYZd7Ik DQPegexHcCYRYS571fnCCenCYJg0MLmD+WErffD+Y3vJAdEpkRZgenOFjajk9nsh 3ytfyzWUCCqzoUaz3FnTvkTXIuiW1WLSL5bFgfPNefN1v8bBhcO8TqAOcnOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1745919643; x= 1746006043; bh=UAUU8hAFAEw3KNjv8JTNEJ86H4jCFTDa5cN7PhElkUM=; b=W Bk/66lDhR84d6GMwhzB9AdP6JzXH9n00fvntkl5u6Z2/hVzvB/m8wim4b8/i1LJ2 C5uX2gJ7rXeFAlncL8ubFRj1dnr0OyWxv7I5hU3RYUe3CxrQWiGGiEIFaYu+35cW mVcZVe+PrlRRjey018NamdmoGGutpC6a4mVE8rpOGT/6KjQkroyOsN5xyL1FQCUw aht0DmaIqyj/pCvYcz+XeEcLXs0+xSnF7hXqcp+n+V9iphZlxpQmYtXO+pDcxoEX v5Wc1XmTfjZ6IewgEmpps5M6oCsh0nFW+x5Kg9ioqTa8bwVbcr1geb+xgXAZAoAz TvmAC3ZfWlWBGWhHacWSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieefgeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhtg gguffkfffvofesrgdtmherhhdtjeenucfhrhhomheplfhoshhtvghinhcumfhjpphnihhg shgvnhcuoehjohhsthgvihhnsehsvggtuhhrvgdrkhhjohhnihhgshgvnhdrnhgvtheqne cuggftrfgrthhtvghrnhepffdtieegteeggffhkefgtdelffdufffgffefvdefffeghedu vdejvdfhvdffveeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoshhtvghinhesshgvtghurhgvrdhkjhhonhhighhsvghnrdhnvghtpdhn sggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqd hgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: ib2f84088:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 29 Apr 2025 05:40:43 -0400 (EDT) From: =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= Content-Type: multipart/alternative; boundary="Apple-Mail=_E217B13A-AD8E-42BA-9CC0-8FFA74D92F9B" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: [PATCH] 31.0.50; python-ts-mode fontification does not handle normal python constructs Message-Id: <1C68006A-216B-4B46-B222-A521E5C092F3@secure.kjonigsen.net> Date: Tue, 29 Apr 2025 11:40:32 +0200 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3826.500.181.1.5) Received-SPF: pass client-ip=202.12.124.158; envelope-from=jostein@secure.kjonigsen.net; helo=fhigh-b7-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --Apple-Mail=_E217B13A-AD8E-42BA-9CC0-8FFA74D92F9B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hey everyone. When using python-ts-mode to edit python code, there's quite a few areas = where fontification is lacking, but could be provided by the treesitter = syntax tree. * Constants * Type-names * variable-names in for-in statements * import-names in import statements * variable-declarations in lambda-expressions Attached is a patch which fixes this. =E2=80=94 Kind Regards Jostein Kj=C3=B8nigsen =EF=BF=BC= --Apple-Mail=_E217B13A-AD8E-42BA-9CC0-8FFA74D92F9B Content-Type: multipart/mixed; boundary="Apple-Mail=_C5868154-F18E-4918-9956-8A3E9D29EF79" --Apple-Mail=_C5868154-F18E-4918-9956-8A3E9D29EF79 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hey = everyone.

When using python-ts-mode to edit python = code, there's quite a few areas where fontification is lacking, but = could be provided by the treesitter syntax = tree.

* Constants
* = Type-names
* variable-names in for-in statements
* = import-names in import statements
* variable-declarations in = lambda-expressions

Attached is a patch which = fixes this.

=E2=80=94
Kind Regards
Jostein = Kj=C3=B8nigsen

= --Apple-Mail=_C5868154-F18E-4918-9956-8A3E9D29EF79 Content-Disposition: attachment; filename=0001-python-ts-mode-Improve-fontification.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-python-ts-mode-Improve-fontification.patch" Content-Transfer-Encoding: quoted-printable =46rom=20b019e294211fe19e964d1a9d341f00c0e586cc11=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Jostein=3D20Kj=3DC3=3DB8nigsen?=3D=20= =0ADate:=20Thu,=2020=20Mar=202025=2010:39:31=20= +0100=0ASubject:=20[PATCH]=20python-ts-mode:=20Improve=20fontification=0A= =0Apython--treesit-settings:=20Fontification=20based=20on=20selectors=20= &=20code-conventions=0A=0A-=20Lambda=20parameters:=20variable=20= declarations=0A-=20For=20in=20statements:=20variable=20declarations=0A-=20= Import=20statements:=20variable=20declerations=0A-=20Constants:=20All=20= upper=20case=20alphanumerical=20identifiers=0A-=20Types:=20CamelCase=20= alphanumerical=20identifiers=0A---=0A=20lisp/progmodes/python.el=20|=20= 17=20++++++++++++++---=0A=201=20file=20changed,=2014=20insertions(+),=20= 3=20deletions(-)=0A=0Adiff=20--git=20a/lisp/progmodes/python.el=20= b/lisp/progmodes/python.el=0Aindex=208848a98fe5f..f3b1ef39b64=20100644=0A= ---=20a/lisp/progmodes/python.el=0A+++=20b/lisp/progmodes/python.el=0A@@=20= -1230,7=20+1230,14=20@@=20python--treesit-settings=0A=20=20=20=20=20=20=20= name:=20(identifier)=20@font-lock-type-face)=0A=20=20=20=20=20=20= (parameters=20(identifier)=20@font-lock-variable-name-face)=0A=20=20=20=20= =20=20(parameters=20(typed_parameter=20(identifier)=20= @font-lock-variable-name-face))=0A-=20=20=20=20=20(parameters=20= (default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face)))=0A+=20=20=20=20=20(parameters=20= (default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face))=0A+=20=20=20=20=20(lambda_parameters=20= (identifier)=20@font-lock-variable-name-face)=0A+=20=20=20=20=20= (for_in_clause=0A+=20=20=20=20=20=20left:=20(identifier)=20= @font-lock-variable-name-face)=0A+=20=20=20=20=20(import_from_statement=0A= +=20=20=20=20=20=20name:=20(dotted_name=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20(_)*=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20(identifier)=20@font-lock-variable-name-face)))=0A= =20=0A=20=20=20=20:feature=20'builtin=0A=20=20=20=20:language=20'python=0A= @@=20-1259,7=20+1266,9=20@@=20python--treesit-settings=0A=20=0A=20=20=20=20= :feature=20'constant=0A=20=20=20=20:language=20'python=0A-=20=20=20= '([(true)=20(false)=20(none)]=20@font-lock-constant-face)=0A+=20=20=20= '([(true)=20(false)=20(none)]=20@font-lock-constant-face=0A+=20=20=20=20=20= ((identifier)=20@font-lock-constant-face=0A+=20=20=20=20=20=20(:match=20= "\\`[A-Z][A-Z0-9_]+\\'"=20@font-lock-constant-face)))=0A=20=0A=20=20=20=20= :feature=20'assignment=0A=20=20=20=20:language=20'python=0A@@=20-1333,7=20= +1342,9=20@@=20python--treesit-settings=0A=20=20=20=20=20=20((call=20= function:=20(identifier)=20@func-name=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20(argument_list=20:anchor=20(_)=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(binary_operator)=20= @python--treesit-fontify-union-types-strict))=0A-=20=20=20=20=20=20= (:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name)))=0A+=20=20=20=20= =20=20(:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name))=0A+=20=20= =20=20=20((identifier)=20@font-lock-type-face=0A+=20=20=20=20=20=20= (:match=20"\\`[A-Z][A-Za-z0-9]+\\'"=20@font-lock-type-face)))=0A=20=0A=20= =20=20=20:feature=20'escape-sequence=0A=20=20=20=20:language=20'python=0A= --=20=0A2.49.0=0A=0A= --Apple-Mail=_C5868154-F18E-4918-9956-8A3E9D29EF79 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
--Apple-Mail=_C5868154-F18E-4918-9956-8A3E9D29EF79-- --Apple-Mail=_E217B13A-AD8E-42BA-9CC0-8FFA74D92F9B-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 29 06:53:02 2025 Received: (at 78129) by debbugs.gnu.org; 29 Apr 2025 10:53:02 +0000 Received: from localhost ([127.0.0.1]:50822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9iaD-0001rL-DS for submit@debbugs.gnu.org; Tue, 29 Apr 2025 06:53:02 -0400 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]:36249) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9ia8-0001q6-M1 for 78129@debbugs.gnu.org; Tue, 29 Apr 2025 06:52:58 -0400 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id DBB8125401CE for <78129@debbugs.gnu.org>; Tue, 29 Apr 2025 06:52:50 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 29 Apr 2025 06:52:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1745923970; x=1746010370; bh=reTElFjX+lSd75a0XAcoBAvFcYEucSz/SNjTcD642Io=; b= hw7vjVtYKaYK+9H216VDtaZy0wOQe18JVCoSQod6LsLFnK3uUCkcyGJoctECyoyp fIRL/EoHMKkWBVKa7p4lsUR9RZ04LlewhS06fc6rtuW1VdBY9vOsO6PAFi5k6RGK D30/8X7G5v69qyJb5jbJfZR0TVHbMZBTUSpHObVQrOOR/ID+yYBP/UOwyEu8Dkw3 df2HkfxgClmbedaA9o9vQrBY3S6sS7/O8hbv4kxaFOQOptUZX5GJ36QtJB0/DW4s Q0GE6XcI5STN0ICEY4YN1WlbLp0fNIVVSLRdf0vilHkfrkMkP7MOQWSExqnf3T+a QZEmET/IgtSHPfuH4Z21eA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1745923970; x=1746010370; bh=reTElFjX+lSd75a0XAcoBAvFcYEucSz/SNj TcD642Io=; b=oxOxj7E0FGlqBB0XEEjQAXEbkwl7kqjqZdVigM4PIeZYtkysKKL vRywoFDNdlW5ag+XECmtcAYGkoc0A+phZh/lmIGzULn9nJo++9IltfcmF47xyOCW xkhJCcdqkSSNY3sa+rKHrvQQ1kvtkxiNYZwYLcc+pDG1bYKUkTWm2t9s+rGYCLDt JRr2nlDdrh9L/lhGQe3CsIfNn0Oi9xhvNRK8bMiM0nL7F0Datly1UEVK1RmdlIdU TjhFPlk/1W+an4zBXjJzPi0B9AyUio/FaM2EArOGl+DiNdSnCC/duwKaZ6yRDWwj 5C0R7rUv3fHSifd9VgODVRMid6hKkMsDjiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieefiedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhtg gguffffhfvjgfkofesrgdtmherhhdtvdenucfhrhhomheplfhoshhtvghinhcumfhjpphn ihhgshgvnhcuoehjohhsthgvihhnsehsvggtuhhrvgdrkhhjohhnihhgshgvnhdrnhgvth eqnecuggftrfgrthhtvghrnhepffdthedtfedtieegjeetvdevtefhgedtkedtgeffiefh ffevgeevffeuudeihfffnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoshhtvghinhesshgvtghu rhgvrdhkjhhonhhighhsvghnrdhnvghtpdhnsggprhgtphhtthhopedupdhmohguvgepsh hmthhpohhuthdprhgtphhtthhopeejkeduvdelseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: ib2f84088:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <78129@debbugs.gnu.org>; Tue, 29 Apr 2025 06:52:50 -0400 (EDT) From: =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= Content-Type: multipart/alternative; boundary="Apple-Mail=_BA6C67AE-BDD3-4314-933C-95E0AB2940FD" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: Re: bug#78129: Acknowledgement ([PATCH] 31.0.50; python-ts-mode fontification does not handle normal python constructs) Date: Tue, 29 Apr 2025 12:52:37 +0200 References: <1C68006A-216B-4B46-B222-A521E5C092F3@secure.kjonigsen.net> To: 78129@debbugs.gnu.org In-Reply-To: Message-Id: <5444846E-2DE3-4A30-9AA6-6D62E359D33D@secure.kjonigsen.net> X-Mailer: Apple Mail (2.3826.500.181.1.5) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78129 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Apple-Mail=_BA6C67AE-BDD3-4314-933C-95E0AB2940FD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 The initially submitted patch contains a query which are needlessly = complicated (import statements). Attached is a new patch where this has been simplified. =EF=BF=BC =E2=80=94 Kind Regards Jostein Kj=C3=B8nigsen > On 29 Apr 2025, at 11:42, GNU bug Tracking System = wrote: >=20 > Thank you for filing a new bug report with debbugs.gnu.org. >=20 > This is an automatically generated reply to let you know your message > has been received. >=20 > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. >=20 > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org >=20 > If you wish to submit further information on this problem, please > send it to 78129@debbugs.gnu.org. >=20 > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. >=20 > --=20 > 78129: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78129 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems --Apple-Mail=_BA6C67AE-BDD3-4314-933C-95E0AB2940FD Content-Type: multipart/mixed; boundary="Apple-Mail=_0825A1EC-5E3F-4D38-8738-729472AE85F8" --Apple-Mail=_0825A1EC-5E3F-4D38-8738-729472AE85F8 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
The initially submitted patch contains a query which are needlessly complicated (import statements).

Attached is a new patch where this has been simplified.

--Apple-Mail=_0825A1EC-5E3F-4D38-8738-729472AE85F8 Content-Disposition: attachment; filename=0001-python-ts-mode-Improve-fontification.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-python-ts-mode-Improve-fontification.patch" Content-Transfer-Encoding: quoted-printable =46rom=20e7d6b34eb99ed4b931bfe9d0721f5a898dd87cc0=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Jostein=3D20Kj=3DC3=3DB8nigsen?=3D=20= =0ADate:=20Thu,=2020=20Mar=202025=2010:39:31=20= +0100=0ASubject:=20[PATCH=201/4]=20python-ts-mode:=20Improve=20= fontification=0A=0Apython--treesit-settings:=20Fontification=20based=20= on=20selectors=20&=20code-conventions=0A=0A-=20Lambda=20parameters:=20= variable=20declarations=0A-=20For=20in=20statements:=20variable=20= declarations=0A-=20Import=20statements:=20variable=20declerations=0A-=20= Constants:=20All=20upper=20case=20alphanumerical=20identifiers=0A-=20= Types:=20CamelCase=20alphanumerical=20identifiers=0A---=0A=20= lisp/progmodes/python.el=20|=2015=20++++++++++++---=0A=201=20file=20= changed,=2012=20insertions(+),=203=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/python.el=20b/lisp/progmodes/python.el=0Aindex=20= 8848a98fe5f..ccc932f36a7=20100644=0A---=20a/lisp/progmodes/python.el=0A= +++=20b/lisp/progmodes/python.el=0A@@=20-1230,7=20+1230,12=20@@=20= python--treesit-settings=0A=20=20=20=20=20=20=20name:=20(identifier)=20= @font-lock-type-face)=0A=20=20=20=20=20=20(parameters=20(identifier)=20= @font-lock-variable-name-face)=0A=20=20=20=20=20=20(parameters=20= (typed_parameter=20(identifier)=20@font-lock-variable-name-face))=0A-=20=20= =20=20=20(parameters=20(default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face)))=0A+=20=20=20=20=20(parameters=20= (default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face))=0A+=20=20=20=20=20(lambda_parameters=20= (identifier)=20@font-lock-variable-name-face)=0A+=20=20=20=20=20= (for_in_clause=0A+=20=20=20=20=20=20left:=20(identifier)=20= @font-lock-variable-name-face)=0A+=20=20=20=20=20(import_from_statement=0A= +=20=20=20=20=20=20name:=20((dotted_name=20(identifier)=20= @font-lock-variable-name-face))))=0A=20=0A=20=20=20=20:feature=20= 'builtin=0A=20=20=20=20:language=20'python=0A@@=20-1259,7=20+1264,9=20@@=20= python--treesit-settings=0A=20=0A=20=20=20=20:feature=20'constant=0A=20=20= =20=20:language=20'python=0A-=20=20=20'([(true)=20(false)=20(none)]=20= @font-lock-constant-face)=0A+=20=20=20'([(true)=20(false)=20(none)]=20= @font-lock-constant-face=0A+=20=20=20=20=20((identifier)=20= @font-lock-constant-face=0A+=20=20=20=20=20=20(:match=20= "\\`[A-Z][A-Z0-9_]+\\'"=20@font-lock-constant-face)))=0A=20=0A=20=20=20=20= :feature=20'assignment=0A=20=20=20=20:language=20'python=0A@@=20-1333,7=20= +1340,9=20@@=20python--treesit-settings=0A=20=20=20=20=20=20((call=20= function:=20(identifier)=20@func-name=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20(argument_list=20:anchor=20(_)=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(binary_operator)=20= @python--treesit-fontify-union-types-strict))=0A-=20=20=20=20=20=20= (:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name)))=0A+=20=20=20=20= =20=20(:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name))=0A+=20=20= =20=20=20((identifier)=20@font-lock-type-face=0A+=20=20=20=20=20=20= (:match=20"\\`[A-Z][A-Za-z0-9]+\\'"=20@font-lock-type-face)))=0A=20=0A=20= =20=20=20:feature=20'escape-sequence=0A=20=20=20=20:language=20'python=0A= --=20=0A2.49.0=0A=0A= --Apple-Mail=_0825A1EC-5E3F-4D38-8738-729472AE85F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

=E2=80=94
Kind Regards
Jostein = Kj=C3=B8nigsen

On 29 Apr 2025, at 11:42, GNU = bug Tracking System <help-debbugs@gnu.org> wrote:

Thank you for filing a new = bug report with debbugs.gnu.org.

This is an automatically = generated reply to let you know your message
has been = received.

Your message is being forwarded to the package = maintainers and other
interested parties for their attention; they = will reply in due course.

Your message has been sent to the = package maintainer(s):
bug-gnu-emacs@gnu.org

If you wish to = submit further information on this problem, please
send it to = 78129@debbugs.gnu.org.

Please do not send mail to = help-debbugs@gnu.org unless you wish
to report a problem with the = Bug-tracking system.

--
78129: = https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78129
GNU Bug = Tracking System
Contact help-debbugs@gnu.org with = problems

= --Apple-Mail=_0825A1EC-5E3F-4D38-8738-729472AE85F8-- --Apple-Mail=_BA6C67AE-BDD3-4314-933C-95E0AB2940FD-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 30 17:26:08 2025 Received: (at 78129) by debbugs.gnu.org; 30 Apr 2025 21:26:08 +0000 Received: from localhost ([127.0.0.1]:46058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uAEwR-0007uw-Is for submit@debbugs.gnu.org; Wed, 30 Apr 2025 17:26:08 -0400 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]:36841) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uAEwL-0007uB-SG for 78129@debbugs.gnu.org; Wed, 30 Apr 2025 17:26:05 -0400 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2D58811401EF; Wed, 30 Apr 2025 17:25:56 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 30 Apr 2025 17:25:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:cc:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1746048356; x=1746134756; bh=s4AuhkjLaUkGNpF0LMH3PRwl9M6rdfFY7HR+/ft4DB4=; b= MIcWsJO5vRANq0q3VDiKqO1spAIkzOlJMJtBVnZQZpVPvepqIuR5zk+gTMbqrH1c o3aZuGX5Fyo9Xnr+SZUcbkGHZ9KYrW5d2OoxOAeHGk89uKH0eu/3gkSlFFNmhI4G pQBSYZHKNLA55/uXMt2eJFJD+TjcHYJ50qV6tJKrfP5tV198cBW/VDODuyIaudec 4H7kfCYveb6rIL9sKzdiloqk2H4LhuV1KfxVBSnSlr3zHycc2wi9+JPtM3bVvPB4 VqPFuGlZvZ+kk1EB7/Nku01qFoMUM3kQM3HxfUmxK5mMqCg2rZXdwBxEkS6DZ11G o+HVipjDeDjSjxl50CCf2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1746048356; x=1746134756; bh=s4AuhkjLaUkGNpF0LMH3PRwl9M6rdfFY7HR +/ft4DB4=; b=muP7cpAMmPgp9+rsfyP7NxOLL6/Wh4nVYAv+aMe/9UPT17xtBMY tCbCGiuDl5M8xuZfWkR4xWr1ufsZne55OJu5XUVj5s+HtZho4Cs4BR4mMuOZUVOG b6pHt11F3Pu+3mZooWmUzcCLc4ovB0wYNbzPackW8AK0ASan5s9ZBh5o+je57YfM fke3Au1oJk+Vmy2w9VU9HBwAulVERFqjYrMyCIIP9gcoqT2EpbJqeBjbtiPd/L5t sPMaf/c7HpGza60vCYQ45ioVAn3lTYi8PwgpaRHhPPvLKvbt/cYX0/R+AFXM/DfI EpJbxpT5Rm5345gS93LqPT/DbbjF80kOBNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieejjeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffktgggufffjgevvfhfofesrgdtmherhhdt vdenucfhrhhomheplfhoshhtvghinhcumfhjpphnihhgshgvnhcuoehjohhsthgvihhnse hsvggtuhhrvgdrkhhjohhnihhgshgvnhdrnhgvtheqnecuggftrfgrthhtvghrnhepteej keeuvdegveegtdffgfehvedtffegudeuhedvtdfggeeftdevtdejudduteeunecuffhomh grihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepjhhoshhtvghinhesshgvtghurhgvrdhkjhhonhhighhsvghnrdhnvg htpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeej keduvdelseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepughviihusggrrh gvvheshigrnhguvgigrdhruh X-ME-Proxy: Feedback-ID: ib2f84088:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 30 Apr 2025 17:25:55 -0400 (EDT) From: =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= Message-Id: <0A5F250F-3075-4DEA-B0DE-7589A5EBEF5A@secure.kjonigsen.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_8F6C700F-C15B-4CA9-BFAC-332DB48F10C7" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: Re: bug#78129: Acknowledgement ([PATCH] 31.0.50; python-ts-mode fontification does not handle normal python constructs) Date: Wed, 30 Apr 2025 23:25:43 +0200 In-Reply-To: <5444846E-2DE3-4A30-9AA6-6D62E359D33D@secure.kjonigsen.net> To: 78129@debbugs.gnu.org References: <1C68006A-216B-4B46-B222-A521E5C092F3@secure.kjonigsen.net> <5444846E-2DE3-4A30-9AA6-6D62E359D33D@secure.kjonigsen.net> X-Mailer: Apple Mail (2.3826.500.181.1.5) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78129 Cc: Denis Zubarev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Apple-Mail=_8F6C700F-C15B-4CA9-BFAC-332DB48F10C7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 And yet a newer patch, which add enum-values being fontified as = constants on top of the things discussed below. Note: This patch removes a "override" rule which used to be in place. = I'm writing Python using typing and from I can tell, removing this rule = does not have any adverse affects on my code. Since Denis added that override, I've put him on CC so he can verify if = he can confirm my assessment. =EF=BF=BC =E2=80=94 Kind Regards Jostein Kj=C3=B8nigsen > On 29 Apr 2025, at 12:52, Jostein Kj=C3=B8nigsen = wrote: >=20 > The initially submitted patch contains a query which are needlessly = complicated (import statements). >=20 > Attached is a new patch where this has been simplified. >=20 =EF=BF=BC >=20 > =E2=80=94 > Kind Regards > Jostein Kj=C3=B8nigsen >=20 >> On 29 Apr 2025, at 11:42, GNU bug Tracking System = wrote: >>=20 >> Thank you for filing a new bug report with debbugs.gnu.org. >>=20 >> This is an automatically generated reply to let you know your message >> has been received. >>=20 >> Your message is being forwarded to the package maintainers and other >> interested parties for their attention; they will reply in due = course. >>=20 >> Your message has been sent to the package maintainer(s): >> bug-gnu-emacs@gnu.org >>=20 >> If you wish to submit further information on this problem, please >> send it to 78129@debbugs.gnu.org. >>=20 >> Please do not send mail to help-debbugs@gnu.org unless you wish >> to report a problem with the Bug-tracking system. >>=20 >> --=20 >> 78129: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78129 >> GNU Bug Tracking System >> Contact help-debbugs@gnu.org with problems >=20 --Apple-Mail=_8F6C700F-C15B-4CA9-BFAC-332DB48F10C7 Content-Type: multipart/mixed; boundary="Apple-Mail=_2EF79E64-A88E-4D80-BD51-61F52516975E" --Apple-Mail=_2EF79E64-A88E-4D80-BD51-61F52516975E Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii And yet a newer patch, which add enum-values being fontified as constants on top of the things discussed below.

Note: This patch removes a "override" rule which used to be in place. I'm writing Python using typing and from I can tell, removing this rule does not have any adverse affects on my code.

Since Denis added that override, I've put him on CC so he can verify if he can confirm my assessment.

--Apple-Mail=_2EF79E64-A88E-4D80-BD51-61F52516975E Content-Disposition: attachment; filename=0001-python-ts-mode-Improve-fontification.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-python-ts-mode-Improve-fontification.patch" Content-Transfer-Encoding: quoted-printable =46rom=20f66e65fae441cebbc7caaa7e7ea5f619f7662ef8=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Jostein=3D20Kj=3DC3=3DB8nigsen?=3D=20= =0ADate:=20Thu,=2020=20Mar=202025=2010:39:31=20= +0100=0ASubject:=20[PATCH]=20python-ts-mode:=20Improve=20fontification=0A= =0Apython--treesit-settings:=20Fontification=20based=20on=20selectors=20= &=20code-conventions=0A=0A-=20Lambda=20parameters:=20variable=20= declarations=0A-=20For=20in=20statements:=20variable=20declarations=0A-=20= Import=20statements:=20variable=20declerations=0A-=20Constants:=20All=20= upper=20case=20alphanumerical=20identifiers=0A-=20Types:=20CamelCase=20= alphanumerical=20identifiers=0A-=20Enums:=20Enum-values=20as=20= constants.=0A---=0A=20lisp/progmodes/python.el=20|=2023=20= ++++++++++++++++++-----=0A=201=20file=20changed,=2018=20insertions(+),=20= 5=20deletions(-)=0A=0Adiff=20--git=20a/lisp/progmodes/python.el=20= b/lisp/progmodes/python.el=0Aindex=208848a98fe5f..076fff4ea2f=20100644=0A= ---=20a/lisp/progmodes/python.el=0A+++=20b/lisp/progmodes/python.el=0A@@=20= -1230,7=20+1230,15=20@@=20python--treesit-settings=0A=20=20=20=20=20=20=20= name:=20(identifier)=20@font-lock-type-face)=0A=20=20=20=20=20=20= (parameters=20(identifier)=20@font-lock-variable-name-face)=0A=20=20=20=20= =20=20(parameters=20(typed_parameter=20(identifier)=20= @font-lock-variable-name-face))=0A-=20=20=20=20=20(parameters=20= (default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face)))=0A+=20=20=20=20=20(parameters=20= (default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face))=0A+=20=20=20=20=20(lambda_parameters=20= (identifier)=20@font-lock-variable-name-face)=0A+=20=20=20=20=20= (for_in_clause=0A+=20=20=20=20=20=20left:=20(identifier)=20= @font-lock-variable-name-face)=0A+=20=20=20=20=20((import_from_statement=0A= +=20=20=20=20=20=20=20name:=20((dotted_name=20(identifier)=20= @font-lock-type-face)))=0A+=20=20=20=20=20=20(:match=20= "\\`[A-Z][A-Za-z0-9]+\\'"=20@font-lock-type-face))=0A+=20=20=20=20=20= (import_from_statement=0A+=20=20=20=20=20=20name:=20((dotted_name=20= (identifier)=20@font-lock-variable-name-face))))=0A=20=0A=20=20=20=20= :feature=20'builtin=0A=20=20=20=20:language=20'python=0A@@=20-1259,7=20= +1267,12=20@@=20python--treesit-settings=0A=20=0A=20=20=20=20:feature=20= 'constant=0A=20=20=20=20:language=20'python=0A-=20=20=20'([(true)=20= (false)=20(none)]=20@font-lock-constant-face)=0A+=20=20=20'([(true)=20= (false)=20(none)]=20@font-lock-constant-face=0A+=20=20=20=20=20= ((identifier)=20@font-lock-constant-face=0A+=20=20=20=20=20=20(:match=20= "\\`[A-Z][A-Z0-9_]+\\'"=20@font-lock-constant-face))=0A+=20=20=20=20=20= ((attribute=0A+=20=20=20=20=20=20=20attribute:=20(identifier)=20= @font-lock-constant-face)=0A+=20=20=20=20=20=20(:match=20= "\\`[A-Z][A-Z0-9_]+\\'"=20@font-lock-constant-face)))=0A=20=0A=20=20=20=20= :feature=20'assignment=0A=20=20=20=20:language=20'python=0A@@=20-1287,8=20= +1300,6=20@@=20python--treesit-settings=0A=20=0A=20=20=20=20:feature=20= 'type=0A=20=20=20=20:language=20'python=0A-=20=20=20;;=20Override=20= built-in=20faces=20when=20dict/list=20are=20used=20for=20type=20hints.=0A= -=20=20=20:override=20t=0A=20=20=20=20`(((identifier)=20= @font-lock-type-face=0A=20=20=20=20=20=20=20(:match=20,(rx-to-string=0A=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20`(seq=20bol=20(or=20= ,@python--treesit-exceptions)=0A@@=20-1333,7=20+1344,9=20@@=20= python--treesit-settings=0A=20=20=20=20=20=20((call=20function:=20= (identifier)=20@func-name=0A=20=20=20=20=20=20=20=20=20=20=20=20=20= (argument_list=20:anchor=20(_)=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20(binary_operator)=20= @python--treesit-fontify-union-types-strict))=0A-=20=20=20=20=20=20= (:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name)))=0A+=20=20=20=20= =20=20(:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name))=0A+=20=20= =20=20=20((identifier)=20@font-lock-type-face=0A+=20=20=20=20=20=20= (:match=20"\\`[A-Z][A-Za-z0-9]+\\'"=20@font-lock-type-face)))=0A=20=0A=20= =20=20=20:feature=20'escape-sequence=0A=20=20=20=20:language=20'python=0A= --=20=0A2.49.0=0A=0A= --Apple-Mail=_2EF79E64-A88E-4D80-BD51-61F52516975E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

=E2=80=94
Kind Regards
Jostein = Kj=C3=B8nigsen

On 29 Apr 2025, at 12:52, = Jostein Kj=C3=B8nigsen <jostein@secure.kjonigsen.net> = wrote:

The initially submitted patch = contains a query which are needlessly complicated (import = statements).

Attached is a new patch where this = has been = simplified.

=
= --Apple-Mail=_2EF79E64-A88E-4D80-BD51-61F52516975E Content-Disposition: attachment; filename=0001-python-ts-mode-Improve-fontification.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-python-ts-mode-Improve-fontification.patch" Content-Transfer-Encoding: quoted-printable =46rom=20e7d6b34eb99ed4b931bfe9d0721f5a898dd87cc0=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Jostein=3D20Kj=3DC3=3DB8nigsen?=3D=20= =0ADate:=20Thu,=2020=20Mar=202025=2010:39:31=20= +0100=0ASubject:=20[PATCH=201/4]=20python-ts-mode:=20Improve=20= fontification=0A=0Apython--treesit-settings:=20Fontification=20based=20= on=20selectors=20&=20code-conventions=0A=0A-=20Lambda=20parameters:=20= variable=20declarations=0A-=20For=20in=20statements:=20variable=20= declarations=0A-=20Import=20statements:=20variable=20declerations=0A-=20= Constants:=20All=20upper=20case=20alphanumerical=20identifiers=0A-=20= Types:=20CamelCase=20alphanumerical=20identifiers=0A---=0A=20= lisp/progmodes/python.el=20|=2015=20++++++++++++---=0A=201=20file=20= changed,=2012=20insertions(+),=203=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/python.el=20b/lisp/progmodes/python.el=0Aindex=20= 8848a98fe5f..ccc932f36a7=20100644=0A---=20a/lisp/progmodes/python.el=0A= +++=20b/lisp/progmodes/python.el=0A@@=20-1230,7=20+1230,12=20@@=20= python--treesit-settings=0A=20=20=20=20=20=20=20name:=20(identifier)=20= @font-lock-type-face)=0A=20=20=20=20=20=20(parameters=20(identifier)=20= @font-lock-variable-name-face)=0A=20=20=20=20=20=20(parameters=20= (typed_parameter=20(identifier)=20@font-lock-variable-name-face))=0A-=20=20= =20=20=20(parameters=20(default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face)))=0A+=20=20=20=20=20(parameters=20= (default_parameter=20name:=20(identifier)=20= @font-lock-variable-name-face))=0A+=20=20=20=20=20(lambda_parameters=20= (identifier)=20@font-lock-variable-name-face)=0A+=20=20=20=20=20= (for_in_clause=0A+=20=20=20=20=20=20left:=20(identifier)=20= @font-lock-variable-name-face)=0A+=20=20=20=20=20(import_from_statement=0A= +=20=20=20=20=20=20name:=20((dotted_name=20(identifier)=20= @font-lock-variable-name-face))))=0A=20=0A=20=20=20=20:feature=20= 'builtin=0A=20=20=20=20:language=20'python=0A@@=20-1259,7=20+1264,9=20@@=20= python--treesit-settings=0A=20=0A=20=20=20=20:feature=20'constant=0A=20=20= =20=20:language=20'python=0A-=20=20=20'([(true)=20(false)=20(none)]=20= @font-lock-constant-face)=0A+=20=20=20'([(true)=20(false)=20(none)]=20= @font-lock-constant-face=0A+=20=20=20=20=20((identifier)=20= @font-lock-constant-face=0A+=20=20=20=20=20=20(:match=20= "\\`[A-Z][A-Z0-9_]+\\'"=20@font-lock-constant-face)))=0A=20=0A=20=20=20=20= :feature=20'assignment=0A=20=20=20=20:language=20'python=0A@@=20-1333,7=20= +1340,9=20@@=20python--treesit-settings=0A=20=20=20=20=20=20((call=20= function:=20(identifier)=20@func-name=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20(argument_list=20:anchor=20(_)=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(binary_operator)=20= @python--treesit-fontify-union-types-strict))=0A-=20=20=20=20=20=20= (:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name)))=0A+=20=20=20=20= =20=20(:match=20"^is\\(?:instance\\|subclass\\)$"=20@func-name))=0A+=20=20= =20=20=20((identifier)=20@font-lock-type-face=0A+=20=20=20=20=20=20= (:match=20"\\`[A-Z][A-Za-z0-9]+\\'"=20@font-lock-type-face)))=0A=20=0A=20= =20=20=20:feature=20'escape-sequence=0A=20=20=20=20:language=20'python=0A= --=20=0A2.49.0=0A=0A= --Apple-Mail=_2EF79E64-A88E-4D80-BD51-61F52516975E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

=E2=80=94
Kind Regards
Jostein = Kj=C3=B8nigsen

On 29 Apr 2025, at 11:42, GNU = bug Tracking System <help-debbugs@gnu.org> wrote:

Thank you for filing a new = bug report with debbugs.gnu.org.

This is an automatically = generated reply to let you know your message
has been = received.

Your message is being forwarded to the package = maintainers and other
interested parties for their attention; they = will reply in due course.

Your message has been sent to the = package maintainer(s):
bug-gnu-emacs@gnu.org

If you wish to = submit further information on this problem, please
send it to = 78129@debbugs.gnu.org.

Please do not send mail to = help-debbugs@gnu.org unless you wish
to report a problem with the = Bug-tracking system.

--
78129: = https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78129
GNU Bug = Tracking System
Contact help-debbugs@gnu.org with = problems


= --Apple-Mail=_2EF79E64-A88E-4D80-BD51-61F52516975E-- --Apple-Mail=_8F6C700F-C15B-4CA9-BFAC-332DB48F10C7-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 01 03:54:27 2025 Received: (at 78129-done) by debbugs.gnu.org; 1 May 2025 07:54:27 +0000 Received: from localhost ([127.0.0.1]:48231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uAOkV-00040k-6O for submit@debbugs.gnu.org; Thu, 01 May 2025 03:54:27 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:46252) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uAOkT-00040P-96 for 78129-done@debbugs.gnu.org; Thu, 01 May 2025 03:54:25 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-22e033a3a07so6692805ad.0 for <78129-done@debbugs.gnu.org>; Thu, 01 May 2025 00:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746086059; x=1746690859; 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=9wfHyVJs47LGX48FycBzmSdBbuxV1ipS6xKsdcd4Fp4=; b=KvRqpyWK7tv+Hol9VNuypeU7ew4B9TGIHbyJUvvfoLtSICBXoNDQLmwzshMQBrHCMG NQE7BXuDqBWetea59gkp+EiaBKjrdv0NdVJGY/A2FrCZOygNiEGBe1B8W47axHpco2ea jnO0yjn4+UvpcUI9Z2a9NvdVJ26Vzzy2u9JbtisNc1+wNzfm9bJBuotLjIEPW60Gk3g3 wj4qCkUbymAAdc+TD0chaSLYApcSuVMhMydKGvYGLE0NaeFMzJE0kPueGBOl+4YN5C6F UiwEd5bmKd781y4bu66D/rb5+gGS5MPcsI/lrO+04zegHfN+cLKK2gEMYw/kPHVvfgcC y3ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746086059; x=1746690859; 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=9wfHyVJs47LGX48FycBzmSdBbuxV1ipS6xKsdcd4Fp4=; b=lqnE+H6o7wcofngpv+b0wjN9J0qGSkyTnO1mWQjB71mmtLLRTqAkO7H2KkLoxKpzn0 7SW31a7rJ3qUm7r6/vgV4t5GboqdOW1HJXxgXS9iTfWj2pQbndaWf9F/Z0Rbk2rmfSEj h36VFvxwfsZJQdr6RX7pXfsujVbjdb9fW1Iy+W0cxLtEnAnnBD/TgfUtSM42QTDX6dLx /UPyqF80F06SmsgtP64GeJetTVTsyMBtRmxPXRhr4vbkXnLT2w2s1kb1ARR/dZlIxb+l K7uFts2wHB9Nh/7FHLElUqVxxmRAumLUpWYd9Uacdo5tGfLZnpQfb8NCGVaQYazb0gK/ J/dQ== X-Gm-Message-State: AOJu0YxL6bfwLVeLohM9a0XNLiGZk5svr13Q157FLfC/qyxblicfd+mN 8kbrnL74/sYyZGaU0BQbvL2r1e88xcf8qncwvDw5iNwIl3oLLBOC X-Gm-Gg: ASbGncsp5XkHpui5ASLKpHjqyNzuN16Sn2M3mPvgN5OYw3tzjE5RGvk+BcyWJg/sjZx 0j0iUUshB1QnS4NDBgOoKQnAQLoy9kHvW4xE+0tvIj8APv4PvQ4E+nrwYfjBGfkstHC92vYuLFg iwDhAFpawV9l9gHFEBeF5XRKPvw3VS7e0nlchRfUuKxoMzwN0WlLohM6iJcddk00rti++jDNGns 5F/KMjkmNtXnUnEoMhJISLsTrg6Th7KC3bTguhBR/zdJIXeCQPggXysbcc+c6WE8/Tnvxfm2l+q 1ZB4faU+udx+TQNLIRl+PKV4TWyOeiQoHZ8mKrqmqX63IRpyvkZEpcL4TiWvhWPd X-Google-Smtp-Source: AGHT+IGLHhjkA/covtGJG4NJp6HUwsClRTBwsmCr4SselRsSfoovLGGJe1gN/RS4/VMyXpHT1LDkjw== X-Received: by 2002:a17:903:46c6:b0:224:1eaa:5de1 with SMTP id d9443c01a7336-22df34d9b30mr84696255ad.18.1746086059261; Thu, 01 May 2025 00:54:19 -0700 (PDT) Received: from smtpclient.apple ([2601:646:8f81:6120:18f0:f917:9183:850d]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e0bc7b0aasm1442065ad.169.2025.05.01.00.54.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 May 2025 00:54:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: Re: bug#78129: Acknowledgement ([PATCH] 31.0.50; python-ts-mode fontification does not handle normal python constructs) From: Yuan Fu In-Reply-To: <0A5F250F-3075-4DEA-B0DE-7589A5EBEF5A@secure.kjonigsen.net> Date: Thu, 1 May 2025 00:54:08 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <14E02C69-E9E9-48DA-8B2F-6656D54D8C5F@gmail.com> References: <1C68006A-216B-4B46-B222-A521E5C092F3@secure.kjonigsen.net> <5444846E-2DE3-4A30-9AA6-6D62E359D33D@secure.kjonigsen.net> <0A5F250F-3075-4DEA-B0DE-7589A5EBEF5A@secure.kjonigsen.net> To: =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= X-Mailer: Apple Mail (2.3826.500.181.1.5) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78129-done Cc: Denis Zubarev , 78129-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Apr 30, 2025, at 2:25=E2=80=AFPM, Jostein Kj=C3=B8nigsen = wrote: >=20 > And yet a newer patch, which add enum-values being fontified as = constants on top of the things discussed below. >=20 > Note: This patch removes a "override" rule which used to be in place. = I'm writing Python using typing and from I can tell, removing this rule = does not have any adverse affects on my code. >=20 > Since Denis added that override, I've put him on CC so he can verify = if he can confirm my assessment. Brilliant work! Applied to master. BTW, make sure you reply messages = below the quoted original message ;) Yuan= From unknown Wed Jun 18 23:04:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 May 2025 11:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator