GNU bug report logs - #45083
perl mode: $x{last}, $x{'last'}, $x{first} should look the same, and different from just last

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 6 Dec 2020 22:02:02 UTC

Severity: minor

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: perl mode: $x{last}, $x{'last'}, $x{first}  should look the same,
 and different from just last
Date: Sun, 06 Dec 2020 19:31:25 +0800
$ emacs file.pl
Shouldn't perl mode know that "last" is not special here,

        $strings{this} = $_->toString;
        $strings{skip} = $strings{this} eq $strings{last};
        $strings{last} = $strings{this};

and thus not color it differently?

> Well then quote it.

OK,

        $strings{"last"} = $strings{this};

But now it looks even more different.

Therefore perl mode should know that
$x{last}, $x{'last'} etc. should look the same, and different from just last.

emacs-version "27.1"




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

Previous Next


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