From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Woodbury Newsgroups: gmane.emacs.bugs Subject: bug#54345: [PATCH] Account for new Python 3.10 keywords Date: Fri, 11 Mar 2022 15:28:30 -0800 Message-ID: <87tuc42hkq.fsf@fosskers.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26492"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 29.0.50 To: 54345@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 12 00:31:14 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSoj3-0006hq-PN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 00:31:14 +0100 Original-Received: from localhost ([::1]:59318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSoj2-0008Vz-7V for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Mar 2022 18:31:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSoit-0008Vo-27 for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 18:31:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSois-0002Lq-Py for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 18:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSois-0000nH-IJ for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 18:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Colin Woodbury Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Mar 2022 23:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54345 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16470414222996 (code B ref -1); Fri, 11 Mar 2022 23:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Mar 2022 23:30:22 +0000 Original-Received: from localhost ([127.0.0.1]:38709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSoiE-0000mG-49 for submit@debbugs.gnu.org; Fri, 11 Mar 2022 18:30:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSoiB-0000m8-Rv for submit@debbugs.gnu.org; Fri, 11 Mar 2022 18:30:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSoiB-0008Ls-J2 for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 18:30:19 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45001) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSoi9-0002HB-Lv for bug-gnu-emacs@gnu.org; Fri, 11 Mar 2022 18:30:19 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9ACBC5C024D for ; Fri, 11 Mar 2022 18:30:15 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 11 Mar 2022 18:30:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fosskers.ca; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; bh=+ /6h1R2Kqk3/TqUs6WWndEDLfbJrCTExR1JCXgLVd+o=; b=eAdPbvATWUDq69R3z 3zclbToWYKRdqCjTv6RFKAM2ZMq30TkvShnV0mwPVgxXnXo1ZsllXGkkCwPeEaaE otZJYo9ds+w5qMwTgMLwMd0U1UgwGQl/RGmE4CCEgErvh1d3OGQKK4o4IcHTlyQR RyS1Qs6+qdQ3fiiHFhDobNchj1yfF0n5zUvTjiM6BDF3d8i18fl9YF7I+KP1xUxt vtOQbzfoNjDbM5bJn3gNC2ZTRupJh0hJoA4NVZftALED0FmtQ67nxD/GBwruPH2k jnXFTz+7omQO+lwUMWbUnTX9V2EOXVdVElEMqKyCVhrFst9jKv3hMOBkx9x/DoGj drs/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=+/6h1R2Kqk3/TqUs6WWndEDLfbJrCTExR1JCXgLVd +o=; b=feDgj2tftccrX7rwhKY7RkM5BUcp+2Owh6psbuhw0q8sL/myVoAJO8DJ4 0gA9sX8zSjQdRl1YpePQVn5YN38Gf8n4VWWTrJ6932wyZfGAeeqsGM2+Wbj8LqCf 465DWJrduA8NfjZKeAb6Rh4LlZaL2lOqiUcWhaCM6JPIezfZMNHwyg6qQCqLCaMU liePWM5wP/2alGZhj0UeeKgnM7F8eIkaVfDfF5SReiDlGtquPQ81rGfjJSl19JVZ n8DETFLPaWuh7UQ/s6M0MUADqS9tvum92BXab/wgJZf9iEaPvptgxgjvIswfGZgS 09kc+7aSaYOXBUE8EBBarI3jEp3Bg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddvfedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuffgfkfggtgesmhdtreertd erjeenucfhrhhomhepveholhhinhcuhghoohgusghurhihuceotgholhhinhesfhhoshhs khgvrhhsrdgtrgeqnecuggftrfgrthhtvghrnhepudetveffhefhueeutdejleeffeeuvd eghfejhfduffeuffektdfftdegffevgfejnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheptgholhhinhesfhhoshhskhgvrhhsrdgtrg X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 11 Mar 2022 18:30:15 -0500 (EST) Received-SPF: none client-ip=66.111.4.25; envelope-from=colin@fosskers.ca; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228237 Archived-At: --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain Content-Disposition: inline I noticed these keywords unhighlighted even on `master`, and this patch fixes that. Cheers, Colin --==-=-= Content-Type: text/html Content-Disposition: inline

I noticed these keywords unhighlighted even on `master`, and this patch fixes that.

Cheers,

Colin

--==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-progmodes-python.el-Account-for-new-keywords.patch >From a20b88001800a89821680ce6b93eb7aed887f325 Mon Sep 17 00:00:00 2001 From: Colin Woodbury Date: Fri, 11 Mar 2022 15:17:12 -0800 Subject: [PATCH] * lisp/progmodes/python.el: Account for new keywords. As of Python 3.10, Python has structured pattern matching. This adds two new keywords which need to be highlighted. --- lisp/progmodes/python.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d83290fe45..c4d8b123a8 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -563,6 +563,8 @@ class declarations.") ;; Python 3.5+ PEP492 (and "async" (+ space) (or "def" "for" "with")) "await" + ;; Python 3.10+ + "match" "case" ;; Extra: "self") symbol-end) -- 2.35.1 --=-=-=--