all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17317: perl mode syntax color changes after second slash
@ 2014-04-22 23:07 積丹尼 Dan Jacobson
  2014-04-23  1:56 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2014-04-22 23:07 UTC (permalink / raw)
  To: 17317

In perl mode after the second slash the colors are wrong:
if($c && /====/){xyz;}





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#17317: perl mode syntax color changes after second slash
  2014-04-22 23:07 bug#17317: perl mode syntax color changes after second slash 積丹尼 Dan Jacobson
@ 2014-04-23  1:56 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2014-04-23  1:56 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 17317

> 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







^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-23  1:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 23:07 bug#17317: perl mode syntax color changes after second slash 積丹尼 Dan Jacobson
2014-04-23  1:56 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.