Subject: Re: bug#20800: perl mode reads into comments too deeply
From: Stefan Monnier <[email-masked]>
To: 積丹尼 Dan Jacobson <[email-masked]>
Cc: [email-masked]
Date: Mon, 15 Jun 2015 21:03:31 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> 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