GNU bug report logs - #49906
perl-mode: variables that conflict with keywords aren't fontified properly

Previous Next

Package: emacs;

Reported by: Tomasz Konojacki <me <at> xenu.pl>

Date: Fri, 6 Aug 2021 06:24:02 UTC

Severity: normal

Tags: moreinfo, patch

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: Tomasz Konojacki <me <at> xenu.pl>
To: 49906 <at> debbugs.gnu.org
Subject: bug#49906: perl-mode: variables that conflict with keywords aren't fontified properly
Date: Fri, 06 Aug 2021 14:06:33 +0200
[Message part 1 (text/plain, inline)]
On Fri, 06 Aug 2021 13:00:30 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> wrote:

> Tomasz Konojacki <me <at> xenu.pl> writes:
> 
> >> For example, "$package" is fontified like a keyword.
> 
> In what context, and in which Emacs version?
> 
> $package = foo;
> 
> is fontified like a variable in Emacs 28.

See the attached screenshot. Are you sure you aren't using cperl-mode?

> >  (defconst perl-font-lock-keywords-2
> > -  (append
> > +  (cl-concatenate
> > +   'list
> 
> Any particular reason to change from append to cl-concatenate here?

Because I'm concatenating three lists.
[screenshot.png (image/png, attachment)]

This bug report was last modified 3 years and 287 days ago.

Previous Next


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