From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "E. Choroba" Newsgroups: gmane.emacs.bugs Subject: bug#47112: cperl-mode: Wrong highlighting of tr, y, q with _ Date: Fri, 12 Mar 2021 21:31:54 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3148"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.21 (LSU 202 2017-01-01) To: 47112@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 12 21:33:27 2021 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 1lKoTN-0000ga-Ds for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 21:33:25 +0100 Original-Received: from localhost ([::1]:49906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKoTM-0007uv-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 15:33:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKoT0-0007lw-N7 for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 15:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKoT0-0000jP-FV for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 15:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKoT0-0001cz-DE for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 15:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "E. Choroba" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47112 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16155811476193 (code B ref -1); Fri, 12 Mar 2021 20:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Mar 2021 20:32:27 +0000 Original-Received: from localhost ([127.0.0.1]:58505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKoSQ-0001bp-Vc for submit@debbugs.gnu.org; Fri, 12 Mar 2021 15:32:27 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:50804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKoSP-0001bh-IV for submit@debbugs.gnu.org; Fri, 12 Mar 2021 15:32:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKoSP-0007Xo-9r for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 15:32:25 -0500 Original-Received: from ufal-mail.mff.cuni.cz ([195.113.20.158]:46474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKoSI-0000HG-8C for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 15:32:25 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id 44F5A735579 for ; Fri, 12 Mar 2021 21:32:06 +0100 (CET) Original-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 jZm4i-2q-im9 for ; Fri, 12 Mar 2021 21:32:06 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id 3B835735578 for ; Fri, 12 Mar 2021 21:32:06 +0100 (CET) X-Virus-Scanned: amavisd-new at ufal.mff.cuni.cz Original-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 e1Yfr4QrjsaU for ; Fri, 12 Mar 2021 21:32:06 +0100 (CET) Original-Received: from [192.168.0.200] (83-101-243-80.cust.centrio.cz [80.243.101.83]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTPSA id 0909E7365C7 for ; Fri, 12 Mar 2021 21:32:05 +0100 (CET) X-X-Sender: choroba@silent Received-SPF: none client-ip=195.113.20.158; envelope-from=choroba@matfyz.cz; helo=ufal-mail.mff.cuni.cz X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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:202206 Archived-At: The quote-like operators q, qq, qr, qw, qx, tr, y, m, and s can use word characters as quoting characters, but then they must be followed by whitespace. In Perl, "_" is also a word character, but cperl-mode doesn't follow this rule. E.g. sub y_max { is highlighted as if the y was the transliteration operator, but in fact "y_max" is a subroutine name, as there's no space after "y". Ch.