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.

Full log


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






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

Previous Next


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