unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 20800-done@debbugs.gnu.org
Subject: bug#20800: perl mode reads into comments too deeply
Date: Mon, 15 Jun 2015 21:03:31 -0400	[thread overview]
Message-ID: <jwvlhfljgw2.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <878uboyvmh.fsf@jidanni.org> ("積丹尼 Dan Jacobson"'s message of "Sat, 13 Jun 2015 14:23:34 +0800")

> For this snippet of code perl mode gets the colors wrong:
> return 'W' if               #/^Not Available on Mobile/m;    #W=Web only
>     /This video is not available on mobile devices./m;
> #After the m all is the wrong color.

Indeed, the code did not handle the case of a comment between the "if"
and the "/": it treated this slash as a division operator.
I installed a patch into the "master" branch which should fix it,


        Stefan





      reply	other threads:[~2015-06-16  1:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-13  6:23 bug#20800: perl mode reads into comments too deeply 積丹尼 Dan Jacobson
2015-06-16  1:03 ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvlhfljgw2.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=20800-done@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).