bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Monnier
Subject: bug#17317: perl mode syntax color changes after second slash
Date: Tue, 22 Apr 2014 21:56:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> 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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]