From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 17317@debbugs.gnu.org
Subject: bug#17317: perl mode syntax color changes after second slash
Date: Tue, 22 Apr 2014 21:56:46 -0400 [thread overview]
Message-ID: <jwvlhuwvmf2.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <878uqxklp0.fsf@jidanni.org> ("積丹尼 Dan Jacobson"'s message of "Wed, 23 Apr 2014 07:07:23 +0800")
> 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
prev parent reply other threads:[~2014-04-23 1:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 23:07 bug#17317: perl mode syntax color changes after second slash 積丹尼 Dan Jacobson
2014-04-23 1:56 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvlhuwvmf2.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=17317@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.