Subject: bug#17317: perl mode syntax color changes after second slash

From: Stefan Monnier <[email-masked]>
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