Subject: Re: bug#49906: perl-mode: variables that conflict with keywords aren't fontified properly

From: Tomasz Konojacki <[email-masked]>
Date: Fri, 06 Aug 2021 14:06:33 +0200

On Fri, 06 Aug 2021 13:00:30 +0200
Lars Ingebrigtsen <[email-masked]> wrote:

> Tomasz Konojacki <[email-masked]> 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.