GNU bug report logs - #66145
30.0.50; cperl-mode unexpected fontification in comments

Previous Next

Package: emacs;

Reported by: Mauro Aranda <maurooaranda <at> gmail.com>

Date: Thu, 21 Sep 2023 21:00:02 UTC

Owned by: Harald Jörg <haj <at> posteo.de>

Severity: normal

Tags: confirmed

Found in version 30.0.50

Done: Harald Jörg <haj <at> posteo.de>

Bug is archived. No further changes may be made.

Full log


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

From: Harald Jörg <haj <at> posteo.de>
To: 66145 <at> debbugs.gnu.org
Subject: Re: bug#66145: 30.0.50; cperl-mode unexpected fontification in
 comments
Date: Sun, 24 Sep 2023 12:57:32 +0000
tags 66145 + confirmed
owner 66145 !
thanks

Mauro Aranda <maurooaranda <at> gmail.com> 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




This bug report was last modified 1 year and 225 days ago.

Previous Next


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