Subject: bug#66145: 30.0.50; cperl-mode unexpected fontification in comments

From: Harald Jörg <[email-masked]>
Date: Sun, 24 Sep 2023 12:57:32 +0000

tags 66145 + confirmed
owner 66145 !
thanks

Mauro Aranda <[email-masked]> writes:

> After emacs -Q
> C-x C-f bug.pl
> M-x cperl-mode
> Type something like this:
> sub foo {
>   # Here we do something like
>   # this: $thing [ num_things ]->{prop}
> }
>
> $thing and prop get fontified.  That's unexpected.
>
> If I leave:
> # this: $thing
> it doesn't get fontified.

Ouch.  I seem to have re-introduced a behavior which had already been
fixed by Lars  (Bug#22867).  The ordering of fontification rules in
cperl-mode.el is somewhat ... delicate.
-- 
Sorry,
haj