From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 15:10:36 2021 Received: (at submit) by debbugs.gnu.org; 21 Jan 2021 20:10:36 +0000 Received: from localhost ([127.0.0.1]:59453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2gHs-0000OP-1a for submit@debbugs.gnu.org; Thu, 21 Jan 2021 15:10:36 -0500 Received: from lists.gnu.org ([209.51.188.17]:53830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2gHq-0000OH-AD for submit@debbugs.gnu.org; Thu, 21 Jan 2021 15:10:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2gHq-0006sJ-5s for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2021 15:10:34 -0500 Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:4192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2gHW-0007cb-QX for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2021 15:10:23 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7FE027E3189 for ; Thu, 21 Jan 2021 20:10:06 +0000 (UTC) Received: from pdx1-sub0-mail-a93.g.dreamhost.com (100-96-27-102.trex.outbound.svc.cluster.local [100.96.27.102]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 82FA47E310E for ; Thu, 21 Jan 2021 20:10:05 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a93.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/6.0.1); Thu, 21 Jan 2021 20:10:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Reaction-Imminent: 566bf6044c0a0411_1611259805726_1349140105 X-MC-Loop-Signature: 1611259805726:4007378510 X-MC-Ingress-Time: 1611259805726 Received: from pdx1-sub0-mail-a93.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a93.g.dreamhost.com (Postfix) with ESMTP id 14F8385D88 for ; Thu, 21 Jan 2021 12:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=U2661RjoeZvu4nMwfPK+8VYSa80=; b=KgQKabxXb8oWLDz3 fRhlFssB9K9FU0Ye1frN3ow3mupRcPKsZiQwBQ4FeWfnUPzzmQeSYMR2zpE5OyZA iAcIGPKfUhS3rlP0zuOEIz7y+u4ogi3vq0CZjXJGNk/yihTTTFSYHm/vFf1hPEi1 ibNlKhd58zGkoEgOBQm0dtRWyvg= Received: from jidanni.org (114-41-31-41.dynamic-ip.hinet.net [114.41.31.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a93.g.dreamhost.com (Postfix) with ESMTPSA id C6DC785D5A for ; Thu, 21 Jan 2021 12:10:04 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a93 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Perl mode colors the word "argument" funny Date: Fri, 22 Jan 2021 04:05:19 +0800 Message-ID: <87ft2uvyww.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.209.151; envelope-from=jidanni@jidanni.org; helo=quail.birch.relay.mailchannels.net X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) Perl mode colors the word "argument" funny: for ( $r[$v] ) { $_->{argument} = 0 + shift; } Cperl mode doesn't. emacs-version "27.1" From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 19:34:06 2021 Received: (at 46024) by debbugs.gnu.org; 22 Jan 2021 00:34:06 +0000 Received: from localhost ([127.0.0.1]:59744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2kOs-00070a-Be for submit@debbugs.gnu.org; Thu, 21 Jan 2021 19:34:06 -0500 Received: from mout02.posteo.de ([185.67.36.66]:60951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2kOp-000703-C3 for 46024@debbugs.gnu.org; Thu, 21 Jan 2021 19:34:04 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B1E6D2400FB for <46024@debbugs.gnu.org>; Fri, 22 Jan 2021 01:33:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1611275636; bh=Bf8A+ZV5Q8InsUEWygtKrNU52GYXFZ77rSq/ZGYmoH8=; h=From:To:Cc:Subject:Date:From; b=pxtKe7TkqLep3X01i1nz1vjwAspAqQcC5t9C78NtpfT17kaCb6tfvBgRWOCzwIIgT KyWvUR2aGsv8vYFlYG13V4X1RuFUo0H7+x0T2PpSr0E4wf0n+onh3QKCxvMEZaBJZA I50HfBTaeMwkGABwmHtlzXhN94YhbEBRQw2rCv56LbxYopHjY3ajUVT6KBZ+trE2xI 6f6yXENH5/C4Nj3CNfFg+llnfzb3NKtJrmnhuZTlzhyUyuSBiBQa1CDTNIfwKE2ejr zVNl/dbtNo6tkhsp/qhHkNHEbPkRMjTWe/CvaiAwcx40PutlHtdhYPr4O7hXCtSE6k 6TEo4uprv5EXw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DMKxv6zGdz9rxK; Fri, 22 Jan 2021 01:33:55 +0100 (CET) From: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) To: 46024@debbugs.gnu.org Subject: Re: bug#46024: Perl mode colors the word "argument" funny In-Reply-To: <87ft2uvyww.5.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Fri, 22 Jan 2021 04:05:19 +0800") References: <87ft2uvyww.5.fsf@jidanni.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Fri, 22 Jan 2021 01:33:55 +0100 Message-ID: <87pn1xu7ws.fsf@hajtower> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46024 Cc: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson 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 (---) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > Perl mode colors the word "argument" funny: > for ( $r[$v] ) { > $_->{argument} =3D 0 + shift; > } > Cperl mode doesn't. > emacs-version "27.1" "argument" as a keyword in Perl mode came as a patch for Bug#27613 - together with a couple of other keywords: anon, has, our, state, supersede, let, and temp. However, only 'our' and 'state' are part of Perl 5. A keyword 'has' is available with popular Perl extensions (Moose, Moo etc.), so arguably fontification as a declarator is acceptable... though slightly inaccurate. The keywords 'anon', 'has', 'supersede', 'let' and 'temp' are part of the Raku language, which started as "Perl 6", as described in the language docs: https://docs.raku.org/language/variables#Variable_declarators_and_scope. 'argument' apparently didn't make it into the language at all, but Raku also has 'augment' and 'constant', and Perl's 'local' is called 'temp' in Raku. CPerl mode has caught only a few keywords from non-core Perl, these are also available with popular extensions ('try','catch','finally'). Perl mode seems to have adopted some more Raku-stuff (e.g. it registers variable names like "my $amazing-variable" to imenu, but fontifies only the $amazing-part). So I wonder: What is the ambition of Emacs to support Raku? The languages Perl (Perl 5) and Raku (Perl 6) have diverged in their syntax, so robably it is rather cumbersome to support both with any of the Perl modes. In my opionion, randomly adding Raku features to the modes brings more confusion than productivity, and in any case keywords which are no longer part of either language should be eliminated, in particular: 'argument', which is the topic of this bug report. --=20 Cheers, haj From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 13:38:51 2021 Received: (at 46024) by debbugs.gnu.org; 22 Jan 2021 18:38:51 +0000 Received: from localhost ([127.0.0.1]:33081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l31Kd-0008Mp-Jd for submit@debbugs.gnu.org; Fri, 22 Jan 2021 13:38:51 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l31Kb-0008Ma-AL for 46024@debbugs.gnu.org; Fri, 22 Jan 2021 13:38:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=Y8bOylH1v1iuj5piFoB45j+n1X9sPTA8l4d2jBdkePg=; b=URU0fwEaP3oR/VbHzGCMJu3gxz ZCPo/uHfdjLVMYxKKeiuj7SFf35qdcQB6wtr79EibhdyqP5tB9t6L+H8sVRt4LqB2J7qiAtLKwQNo W/fzBSaKhVge3W1Cl67IDWEDO4EYpSENTD2rG+RjppwFnsG3I876ocLFD4ujwUiozpKA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l31KR-00042w-Uq; Fri, 22 Jan 2021 19:38:42 +0100 From: Lars Ingebrigtsen To: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) Subject: Re: bug#46024: Perl mode colors the word "argument" funny References: <87ft2uvyww.5.fsf@jidanni.org> <87pn1xu7ws.fsf@hajtower> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEX+/v7q4N7TwrRe gHi8qB/27Q3///9D3i1BAAAAAWJLR0QGYWa4fQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1F B+UBFhIkMX3bl+AAAAFYSURBVDjLzZPBbsMwCIZJpt27Vr23SXNfTV5gMb6vlXn/VxnY2HWSXSfN VaWED/gBB4A/ON2HnMPe3qMbhhEvO3BCFDvedwDzcTsFA7hVuRVw3UgHyvaZN9LRE+FMfqZ1XTei QIGZPX2tpGeiqHaO87KS0ABOx1NTVzeWAAVLJUeORGaXXIFzyceJmRpAkvMpaNI3IlNQkFyewBnI G7WAX0B/LZhqREnFOdU5Ab8FD3i3iGjAgr+hrzUWkFwu0PFKJNpspHsDFlNaBQNyHUFla06w1kvv JfAp4Mwxy2tM0XoI0HqjAE9UlaRaSPXGQJGQXkO+GFDEjb0BoqtVUQO6OiX5l4h0u3V6i6+TSXc7 ZfeIDtGHUNqAPHheRqef6K22YY3IarhrL8wFayOpq3mQ1TiiPpk2wHA4oesGWabeHUa8d8PrYx/E RyLePiE57Lbwl93MavBPzg9nrrmV9TqjMAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMS0yMlQx ODozNjo0OSswMDowMN3oWLoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDEtMjJUMTg6MzY6NDkr MDA6MDCsteAGAAAAAElFTkSuQmCC X-Now-Playing: Various's _Deathbomb Digital Singles Club Year 2_: "Airplane" Date: Fri, 22 Jan 2021 19:38:33 +0100 In-Reply-To: <87pn1xu7ws.fsf@hajtower> ("Harald =?utf-8?Q?J=C3=B6rg=22's?= message of "Fri, 22 Jan 2021 01:33:55 +0100") Message-ID: <87zh10yfyu.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: haj@posteo.de (Harald Jörg) writes: > So I wonder: What is the ambition of Emacs to support Raku? The > languages Perl (Perl 5) and Raku (Perl 6) have diverged in their syntax, > so robably it is rather cumbersome to support both with a [...] 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: 0.0 (/) X-Debbugs-Envelope-To: 46024 Cc: 46024@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson 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 (-) haj@posteo.de (Harald J=C3=B6rg) writes: > So I wonder: What is the ambition of Emacs to support Raku? The > languages Perl (Perl 5) and Raku (Perl 6) have diverged in their syntax, > so robably it is rather cumbersome to support both with any of the Perl > modes. In my opionion, randomly adding Raku features to the modes > brings more confusion than productivity, and in any case keywords which > are no longer part of either language should be eliminated, in > particular: 'argument', which is the topic of this bug report. Long term, it does seem like the best solution would be to have a separate mode for Raku, and not keep tweaking (c)perl-mode to add Raku features, I think. So backing out this change ('argument' etc) sounds like a good idea to me. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 09:08:39 2021 Received: (at 46024) by debbugs.gnu.org; 27 Jan 2021 14:08:39 +0000 Received: from localhost ([127.0.0.1]:44074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4lUt-0005Bn-Gi for submit@debbugs.gnu.org; Wed, 27 Jan 2021 09:08:39 -0500 Received: from mout02.posteo.de ([185.67.36.66]:58875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4lUr-0005BW-6M for 46024@debbugs.gnu.org; Wed, 27 Jan 2021 09:08:38 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4F98A2400FD for <46024@debbugs.gnu.org>; Wed, 27 Jan 2021 15:08:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1611756510; bh=k/cwFQAtt52Fr91UiUHrIBS5VV6C0KpH8+5snHpStH0=; h=From:To:Cc:Subject:Date:From; b=lV4aUyY4NDXSSeX3owGvqYCg294U7mrj6YSWBTkFtNu+JB8fUebt2+How2qQXyuA9 wXCQNQcD6UetnvdRvRFDMZ+UiU20I28RejSQr21MqNEKKnOvlt9W6bcyPZO7a7cy0g SCwp2t3TLfPCpAMb2YNLy+G4QvToa5w0aswAtP3+XFdouWHFh6hv95t1Tau5o69oHX upZrTyUoZJYeYl0fgeGp6WJejQkpB1bvIhiOqS2hVn/97eNmcDQ8T3R8e3Pz5tY2Ef TRlkD4e/suFAUTR1tDyLjr0qJrgIRHJXfnmRcrycgG2OwwAh9uVHruLJFk2zKiGO4P aO77jzx7wrz1A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DQlnT1C40z6tmF; Wed, 27 Jan 2021 15:08:28 +0100 (CET) From: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) To: Lars Ingebrigtsen Subject: Re: bug#46024: Perl mode colors the word "argument" funny [PATCH] In-Reply-To: <87zh10yfyu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 22 Jan 2021 19:38:33 +0100") References: <87ft2uvyww.5.fsf@jidanni.org> <87pn1xu7ws.fsf@hajtower> <87zh10yfyu.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Wed, 27 Jan 2021 15:08:28 +0100 Message-ID: <87v9bicw0z.fsf_-_@hajtower> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46024 Cc: 46024@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson 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 (---) --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > [...] > Long term, it does seem like the best solution would be to have a > separate mode for Raku, and not keep tweaking (c)perl-mode to add Raku > features, I think. > > So backing out this change ('argument' etc) sounds like a good idea to > me. The attached patch removes the declarators and prefixes which are not in Perl. BTW: There is a Raku mode, maintained by the Raku team in their repository on GitHub. -- Cheers, haj --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-perl-mode.el-Eliminate-keywords-which-are-not-in-Per.patch Content-Description: Remove non-Perl keywords >From 7fee0d96a94dfca5567efc757f5b38655e807787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20J=C3=B6rg?= Date: Wed, 27 Jan 2021 14:50:01 +0100 Subject: [PATCH] ; perl-mode.el: Eliminate keywords which are not in Perl. * lisp/progmodes/perl-mode.el (perl-imenu-generic-expression): Remove keywords which are not part of Perl. (perl-font-lock-keywords-2): Remove keywords which are not part of Perl. --- lisp/progmodes/perl-mode.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index d047dd543c..0120e4a7cd 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -143,7 +143,7 @@ perl-imenu-generic-expression '(;; Functions (nil "^[ \t]*sub\\s-+\\([-[:alnum:]+_:]+\\)" 1) ;;Variables - ("Variables" "^[ \t]*\\(?:anon\\|argument\\|has\\|local\\|my\\|our\\|state\\|supersede\\)\\s-+\\([$@%][-[:alnum:]+_:]+\\)\\s-*=" 1) + ("Variables" "^[ \t]*\\(?:has\\|local\\|my\\|our\\|state\\)\\s-+\\([$@%][-[:alnum:]+_:]+\\)\\s-*=" 1) ("Packages" "^[ \t]*package\\s-+\\([-[:alnum:]+_:]+\\);" 1) ("Doc sections" "^=head[0-9][ \t]+\\(.*\\)" 1)) "Imenu generic expression for Perl mode. See `imenu-generic-expression'.") @@ -188,9 +188,8 @@ perl-font-lock-keywords-2 "\\>") ;; ;; Fontify declarators and prefixes as types. - ("\\<\\(anon\\|argument\\|has\\|local\\|my\\|our\\|state\\|supersede\\)\\>" . font-lock-type-face) ; declarators - ("\\<\\(let\\|temp\\)\\>" . font-lock-type-face) ; prefixes - ;; + ("\\<\\(has\\|local\\|my\\|our\\|state\\)\\>" . font-lock-type-face) ; declarators + ;; ;; Fontify function, variable and file name references. ("&\\(\\sw+\\(::\\sw+\\)*\\)" 1 font-lock-function-name-face) ;; Additionally fontify non-scalar variables. `perl-non-scalar-variable' -- 2.20.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 22:23:36 2021 Received: (at 46024) by debbugs.gnu.org; 28 Jan 2021 03:23:36 +0000 Received: from localhost ([127.0.0.1]:46690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4xuC-0004A7-3K for submit@debbugs.gnu.org; Wed, 27 Jan 2021 22:23:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4xuA-00049r-Ax for 46024@debbugs.gnu.org; Wed, 27 Jan 2021 22:23:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=+HkXTz8vnBw5fxo7Afm7KXNmJZQa60jHshG9vGTL160=; b=JHA+3jsXeZONcOT1FXVhbpWfsf jNBhwP1oc5tnVs6DdfXARq/qdNgsXIT7XGbG7jjDJ9ekuvGxxw7NmVuyvN3WeNhbQUvI2cCAI37MP 1+hUhMFE7YXIgH4Psau0yuWVRhmRMCn2KmoReLsWHi3GfRsfFYJNX9r1kbB/qinjAGDw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4xu0-0003XH-Tv; Thu, 28 Jan 2021 04:23:27 +0100 From: Lars Ingebrigtsen To: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) Subject: Re: bug#46024: Perl mode colors the word "argument" funny [PATCH] References: <87ft2uvyww.5.fsf@jidanni.org> <87pn1xu7ws.fsf@hajtower> <87zh10yfyu.fsf@gnus.org> <87v9bicw0z.fsf_-_@hajtower> X-Now-Playing: Wishmountain's _Wishmountain is Dead_: "Bottle" Date: Thu, 28 Jan 2021 04:23:23 +0100 In-Reply-To: <87v9bicw0z.fsf_-_@hajtower> ("Harald =?utf-8?Q?J=C3=B6rg=22'?= =?utf-8?Q?s?= message of "Wed, 27 Jan 2021 15:08:28 +0100") Message-ID: <87v9bh68yc.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: haj@posteo.de (Harald Jörg) writes: > The attached patch removes the declarators and prefixes which are not in > Perl. 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: 0.0 (/) X-Debbugs-Envelope-To: 46024 Cc: 46024@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson 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 (-) haj@posteo.de (Harald J=C3=B6rg) writes: > The attached patch removes the declarators and prefixes which are not in > Perl. Thanks; applied to Emacs 28. > BTW: There is a Raku mode, maintained by the Raku team in their > repository on GitHub. I see... and checking with `package-list', it's also on Melpa. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 22:23:42 2021 Received: (at control) by debbugs.gnu.org; 28 Jan 2021 03:23:42 +0000 Received: from localhost ([127.0.0.1]:46693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4xuI-0004AQ-Bb for submit@debbugs.gnu.org; Wed, 27 Jan 2021 22:23:42 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4xuG-0004A6-G4 for control@debbugs.gnu.org; Wed, 27 Jan 2021 22:23:40 -0500 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=E7bEltkaS8yuF8HXmCEIM5nFrtoKUXpsVJrid6+/z8s=; b=jV2P7/9AxU8CluvVeFHrwPybfG uAWuxGxXPVpBY3jkOPnsVRfJxgRcHfYoyYngxJTvlde3TbRUANwcKE3YSkaMgvElcT3LOKCI9RzTH y5V5uOfAnDhQQ8oTjL19tSCzS3dK+2IZ1Np6fPTDNYe4aNZg4Ju3oT5/6Isaujv268G4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4xu8-0003XO-Mt for control@debbugs.gnu.org; Thu, 28 Jan 2021 04:23:34 +0100 Date: Thu, 28 Jan 2021 04:23:31 +0100 Message-Id: <87tur168y4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46024 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: tags 46024 fixed close 46024 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: 0.0 (/) 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: -1.0 (-) tags 46024 fixed close 46024 28.1 quit From unknown Mon Aug 18 15:39: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: Thu, 25 Feb 2021 12:24:06 +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 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 01 07:00:38 2021 Received: (at control) by debbugs.gnu.org; 1 Jun 2021 11:00:38 +0000 Received: from localhost ([127.0.0.1]:35827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo28T-0008H8-Rd for submit@debbugs.gnu.org; Tue, 01 Jun 2021 07:00:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo28Q-0008Gq-8i for control@debbugs.gnu.org; Tue, 01 Jun 2021 07:00:36 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D2311240027 for ; Tue, 1 Jun 2021 13:00:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1622545227; bh=jG23X//TrWSjtcG7QT8VC5VgN63qPGhu9jf8ReFZdrg=; h=From:To:Subject:Date:From; b=KspwzCCbcw+qY7WB/qESBgseOtGq7HLmZ8HvmppDZZWuM83HlX9zCaf3cKD4/HbKr xwE7Xf3u1ximnVMV1KaQFnhWq8seEVCGc8/k47oCBOz6q6fzsen/WcOfSZZfLKZzWj KS5LTb+8WrY28sedlYGtz9pIKLCvnXh4E3I8V38U6szi71w8UU2mhsJMyjJ1/j77rn rcHzDeTfK/Hh3wPSofZsv8SqZrPgFCRGuqRVwltNX9qUu6nZsU/xTccTFxVws6w0A9 JFA2sFpvDvE2+CM9XuVSeacDDNtr3E4FQs29A4owRdvZOIay4Kikq3XolhQ9XIhNQK mUTFRo1m+7vAA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FvThq0Rdtz6tmQ for ; Tue, 1 Jun 2021 13:00:26 +0200 (CEST) From: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) To: control@debbugs.gnu.org Subject: Re: bug#48761: perl-mode: "$temp" colored differently. In-Reply-To: <874keic7eg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Jun 2021 10:32:07 +0200") References: <87zgwbm4p9.5.fsf@jidanni.org> <8735u2f6bp.fsf@gnus.org> <87tumingm2.fsf@hajtower> <874keic7eg.fsf@gnus.org> Date: Tue, 01 Jun 2021 11:00:26 +0000 Message-ID: <87k0ndonn9.fsf@hajtower> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) unarchive 46024 forcemerge 46024 48761 thanks Bug#46024 was already archived, and the bugs have different severity. -- Cheers, haj From unknown Mon Aug 18 15:39: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: Tue, 29 Jun 2021 11:24:05 +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