GNU bug report logs - #17317
perl mode syntax color changes after second slash

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 22 Apr 2014 23:08:02 UTC

Severity: normal

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17317 in the body.
You can then email your comments to 17317 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17317; Package emacs. (Tue, 22 Apr 2014 23:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 22 Apr 2014 23:08:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: perl mode syntax color changes after second slash
Date: Wed, 23 Apr 2014 07:07:23 +0800
In perl mode after the second slash the colors are wrong:
if($c && /====/){xyz;}




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17317; Package emacs. (Wed, 23 Apr 2014 03:01:07 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 17317 <at> debbugs.gnu.org
Subject: Re: bug#17317: perl mode syntax color changes after second slash
Date: Tue, 22 Apr 2014 21:56:46 -0400
> In perl mode after the second slash the colors are wrong:
> if($c && /====/){xyz;}

Indeed, thanks.  I installed the patch below which should fix it.


        Stefan


--- lisp/progmodes/perl-mode.el	2014-04-16 14:13:06 +0000
+++ lisp/progmodes/perl-mode.el	2014-04-23 01:54:29 +0000
@@ -281,7 +281,7 @@
       ((concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)"
                (regexp-opt '("split" "if" "unless" "until" "while" "split"
                              "grep" "map" "not" "or" "and" "for" "foreach"))
-               "\\|[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)")
+               "\\|[-?:.,;|&+*=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)")
        (2 (ignore
            (if (and (match-end 1)       ; / at BOL.
                     (save-excursion






bug marked as fixed in version 24.4, send any further explanations to 17317 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 03 May 2014 01:26:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 31 May 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 82 days ago.

Previous Next


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