From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 23 13:06:13 2021 Received: (at submit) by debbugs.gnu.org; 23 Jun 2021 17:06:13 +0000 Received: from localhost ([127.0.0.1]:41801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw6KL-00085x-ET for submit@debbugs.gnu.org; Wed, 23 Jun 2021 13:06:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:50480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw6KJ-00085p-UF for submit@debbugs.gnu.org; Wed, 23 Jun 2021 13:06:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw6KJ-0007Wk-Ix for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 13:06:11 -0400 Received: from ufalgate.ms.mff.cuni.cz ([195.113.18.231]:37094) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lw6KE-0000uE-Pw for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 13:06:11 -0400 Received: from ufal-mail.mff.cuni.cz (ufal-mail.mff.cuni.cz [195.113.20.158]) by ufalgate.ms.mff.cuni.cz (Postfix) with ESMTPS id 08EA43DE6D for ; Wed, 23 Jun 2021 19:06:00 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id 02AEA74DE62 for ; Wed, 23 Jun 2021 19:06:00 +0200 (CEST) Received: from ufal-mail.mff.cuni.cz ([127.0.0.1]) by localhost (ufal-mail.mff.cuni.cz [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 2Bf5nqV_3qJF for ; Wed, 23 Jun 2021 19:05:59 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id ED05774E2BA for ; Wed, 23 Jun 2021 19:05:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at ufal.mff.cuni.cz Received: from ufal-mail.mff.cuni.cz ([127.0.0.1]) by localhost (ufal-mail.mff.cuni.cz [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uc5HdDWmDc4Z for ; Wed, 23 Jun 2021 19:05:59 +0200 (CEST) Received: from [192.168.0.111] (89-101-243-80.cust.centrio.cz [80.243.101.89]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTPSA id D771674DE5D for ; Wed, 23 Jun 2021 19:05:59 +0200 (CEST) Date: Wed, 23 Jun 2021 19:05:59 +0200 (CEST) From: "E. Choroba" X-X-Sender: jan.stepanek@triangle To: bug-gnu-emacs@gnu.org Subject: cperl-mode: Syntax highlighting wrong for modifier "for /regex/" (patched) Message-ID: <1efe76b8-9c64-d647-881d-83d23e6188a@ufal.mff.cuni.cz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-19472321-1624467959=:6469" Received-SPF: none client-ip=195.113.18.231; envelope-from=choroba@matfyz.cz; helo=ufalgate.ms.mff.cuni.cz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: -3.3 (---) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-19472321-1624467959=:6469 Content-Type: text/plain; format=flowed; charset=US-ASCII The following lines are highlighted correctly: print while /./; print if /./; But the following two aren't: print for /./; print foreach /./; (In reality, probably only useful with /g). Patch attached. Ch. --0-19472321-1624467959=:6469 Content-Type: text/x-patch; name=0001-cperl-mode-Fix-syntax-highlighting-for-a-regex-after.patch Content-Transfer-Encoding: BASE64 Content-ID: <46805665-d1a7-5364-7282-cb1f2653fe95@ufal.mff.cuni.cz> Content-Description: Content-Disposition: attachment; filename=0001-cperl-mode-Fix-syntax-highlighting-for-a-regex-after.patch RnJvbSAzMDEzOGZlZTg1ZjI4ZjYzNzFmZTRiNzI2ZDhhMjljODM5YTJmYzc4 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogIkUuIENob3JvYmEi IDxjaG9yb2JhQG1hdGZ5ei5jej4NCkRhdGU6IFdlZCwgMjMgSnVuIDIwMjEg MTg6NTc6MDYgKzAyMDANClN1YmplY3Q6IFtQQVRDSF0gY3BlcmwtbW9kZTog Rml4IHN5bnRheCBoaWdobGlnaHRpbmcgZm9yIGEgcmVnZXggYWZ0ZXIgYSBm b3INCiBtb2RpZmllcg0KDQpUaGUgZm9sbG93aW5nIGxpbmVzIHNob3VsZCBi ZSBoaWdobGlnaHRlZCB0aGUgc2FtZToNCg0KICBwcmludCB3aGlsZSAvYS87 DQogIHByaW50IGlmIC9hLzsNCiAgcHJpbnQgZm9yIC9hLzsNCg0KImZvciIg YmVoYXZlZCBkaWZmZXJlbnRseSwgdGhlIHJlZ2V4IHdhc24ndCBoaWdobGln aHRlZCBhdCBhbGwuDQotLS0NCiBsaXNwL3Byb2dtb2Rlcy9jcGVybC1tb2Rl LmVsIHwgMiArLQ0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigrKSwg MSBkZWxldGlvbigtKQ0KDQpkaWZmIC0tZ2l0IGEvbGlzcC9wcm9nbW9kZXMv Y3BlcmwtbW9kZS5lbCBiL2xpc3AvcHJvZ21vZGVzL2NwZXJsLW1vZGUuZWwN CmluZGV4IGZhMzg0YmNhZDYuLjMzNzBkZjY0OTEgMTAwNjQ0DQotLS0gYS9s aXNwL3Byb2dtb2Rlcy9jcGVybC1tb2RlLmVsDQorKysgYi9saXNwL3Byb2dt b2Rlcy9jcGVybC1tb2RlLmVsDQpAQCAtMzk4MSw3ICszOTgxLDcgQEAgdGhl IHNlY3Rpb25zIHVzaW5nIGBjcGVybC1wb2QtaGVhZC1mYWNlJywgYGNwZXJs LXBvZC1mYWNlJywNCiAJCQkJCSAgICAgIChub3QgKG1lbXEgKHByZWNlZGlu Zy1jaGFyKQ0KIAkJCQkJCQkgJyg/JCA/QCA/JiA/JSkpKQ0KIAkJCQkJICAg ICAgKGxvb2tpbmctYXQNCi0JCQkJCSAgICAgICAiXFwod2hpbGVcXHxpZlxc fHVubGVzc1xcfHVudGlsXFx8YW5kXFx8b3JcXHxub3RcXHx4b3JcXHxzcGxp dFxcfGdyZXBcXHxtYXBcXHxwcmludFxcfHNheVxcfHJldHVyblxcKVxcPiIp KSkpDQorCQkJCQkgICAgICAgIlxcKHdoaWxlXFx8aWZcXHx1bmxlc3NcXHx1 bnRpbFxcfGZvclxcKGVhY2hcXCk/XFx8YW5kXFx8b3JcXHxub3RcXHx4b3Jc XHxzcGxpdFxcfGdyZXBcXHxtYXBcXHxwcmludFxcfHNheVxcfHJldHVyblxc KVxcPiIpKSkpDQogCQkJCSAgICAoYW5kIChlcSAocHJlY2VkaW5nLWNoYXIp ID8uKQ0KIAkJCQkJIChlcSAoY2hhci1hZnRlciAoLSAocG9pbnQpIDIpKSA/ LikpDQogCQkJCSAgICAoYm9icCkpDQotLSANCjIuMjYuMg0KDQo= --0-19472321-1624467959=:6469-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 12:15:42 2021 Received: (at 49192) by debbugs.gnu.org; 24 Jun 2021 16:15:42 +0000 Received: from localhost ([127.0.0.1]:43914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwS0z-0000gc-Oa for submit@debbugs.gnu.org; Thu, 24 Jun 2021 12:15:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwS0w-0000YK-CG for 49192@debbugs.gnu.org; Thu, 24 Jun 2021 12:15:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RFKlFoQ/8mR5Pot4aDq6nakd4KPna3LoXvbn3nRKd4M=; b=h+UEqMnBaOjqy50+ZL2j+lRbBo YyfFmOomRx8eCtmrdBM01P1w5dNARjMseK4lQaSG/zbsFl4ue0GOrUF2VkFozj68JFwSrs9Gyx7Bd 5BTivz6r2FAzpGd/woi1umVk/0wPPvwb3IVWgWstU1nQRaR9n6eyL9BJniojejoaHiL4=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwS0n-0002EO-QG; Thu, 24 Jun 2021 18:15:32 +0200 From: Lars Ingebrigtsen To: "E. Choroba" Subject: Re: bug#49192: cperl-mode: Syntax highlighting wrong for modifier "for /regex/" (patched) References: <1efe76b8-9c64-d647-881d-83d23e6188a@ufal.mff.cuni.cz> X-Now-Playing: Winston Tong's _The Fruit of the Original Sin_: "The Next Best Thing To Death" Date: Thu, 24 Jun 2021 18:15:29 +0200 In-Reply-To: <1efe76b8-9c64-d647-881d-83d23e6188a@ufal.mff.cuni.cz> (E. Choroba's message of "Wed, 23 Jun 2021 19:05:59 +0200 (CEST)") Message-ID: <87fsx7i6hq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "E. Choroba" writes: > But the following two aren't: > > print for /./; > print foreach /./; > > (In reality, probably only useful with /g). > > Patch attached. Thanks; applied to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49192 Cc: 49192@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: -3.3 (---) "E. Choroba" writes: > But the following two aren't: > > print for /./; > print foreach /./; > > (In reality, probably only useful with /g). > > Patch attached. Thanks; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 12:15:45 2021 Received: (at control) by debbugs.gnu.org; 24 Jun 2021 16:15:45 +0000 Received: from localhost ([127.0.0.1]:43917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwS13-0000kE-2x for submit@debbugs.gnu.org; Thu, 24 Jun 2021 12:15:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwS10-0000cR-F8 for control@debbugs.gnu.org; Thu, 24 Jun 2021 12:15:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wf6dBThs9VPNawV0+wzyyVgifi9gWLTsou0H8mZobpI=; b=c9HHbVccV81BR/LPcjo8QGWvq0 51CPdg1Vg03PURRjdZl5K+2pha27+JgKGHbsjPr8196cH2ZE3UMcNk9iIFbDiwkrx/ap9VZ1T+JLN 9Taq9FIzyHxMSOQ4z8BLbtSy0hOWR2hkdWS2wMgw7qquYNY/XIhpplNmaP5SONJWnMxc=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwS0t-0002EX-3F for control@debbugs.gnu.org; Thu, 24 Jun 2021 18:15:36 +0200 Date: Thu, 24 Jun 2021 18:15:34 +0200 Message-Id: <87eecri6hl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49192 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 49192 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) close 49192 28.1 quit From unknown Mon Aug 18 02:38:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Jul 2021 11:24:08 +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