GNU bug report logs - #47112
cperl-mode: Wrong highlighting of tr, y, q with _

Previous Next

Package: emacs;

Reported by: "E. Choroba" <choroba <at> matfyz.cz>

Date: Fri, 12 Mar 2021 20:33:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "E. Choroba" <choroba <at> matfyz.cz>
To: 47112 <at> debbugs.gnu.org
Subject: bug#47112: cperl-mode: Wrong highlighting of tr, y, q with _
Date: Fri, 12 Mar 2021 21:31:54 +0100 (CET)
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.




This bug report was last modified 4 years and 65 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.