GNU bug report logs - #49192
cperl-mode: Syntax highlighting wrong for modifier "for /regex/" (patched)

Previous Next

Package: emacs;

Reported by: "E. Choroba" <choroba <at> matfyz.cz>

Date: Wed, 23 Jun 2021 17:07:02 UTC

Severity: normal

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: "E. Choroba" <choroba <at> matfyz.cz>
To: 49192 <at> debbugs.gnu.org
Subject: bug#49192: cperl-mode: Syntax highlighting wrong for modifier "for /regex/" (patched)
Date: Wed, 23 Jun 2021 19:05:59 +0200 (CEST)
[Message part 1 (text/plain, inline)]
The following lines are highlighted correctly:

 print while /./;
 print if /./;

But the following two aren't:

 print for /./;
 print foreach /./;

(In reality, probably only useful with /g).

Patch attached.

Ch.
[0001-cperl-mode-Fix-syntax-highlighting-for-a-regex-after.patch (text/x-patch, attachment)]

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

Previous Next


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