From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#20800: perl mode reads into comments too deeply Date: Mon, 15 Jun 2015 21:03:31 -0400 Message-ID: References: <878uboyvmh.fsf@jidanni.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434416665 22370 80.91.229.3 (16 Jun 2015 01:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2015 01:04:25 +0000 (UTC) Cc: 20800-done@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 16 03:04:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z4fIU-00083U-11 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 03:04:14 +0200 Original-Received: from localhost ([::1]:37027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4fIT-0004Om-16 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jun 2015 21:04:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4fIO-0004Oa-M6 for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 21:04:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4fIJ-0005PR-Fs for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 21:04:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4fIJ-0005PL-Cc for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 21:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z4fII-0004Ka-Vl for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 21:04:03 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jun 2015 01:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 20800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 20800@debbugs.gnu.org, monnier@iro.umontreal.ca, jidanni@jidanni.org Original-Received: via spool by 20800-done@debbugs.gnu.org id=D20800.143441662216618 (code D ref 20800); Tue, 16 Jun 2015 01:04:02 +0000 Original-Received: (at 20800-done) by debbugs.gnu.org; 16 Jun 2015 01:03:42 +0000 Original-Received: from localhost ([127.0.0.1]:55059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4fHx-0004Jx-WD for submit@debbugs.gnu.org; Mon, 15 Jun 2015 21:03:42 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:49229) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4fHu-0004Jg-Tf for 20800-done@debbugs.gnu.org; Mon, 15 Jun 2015 21:03:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AsEwA731xV/1enxEVcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0Fsz+BRSOBZiQcgW4igngBAQE X-IPAS-Result: A0AsEwA731xV/1enxEVcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0Fsz+BRSOBZiQcgW4igngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="126581598" Original-Received: from 69-196-167-87.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.87]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Jun 2015 21:03:32 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B9E5966166; Mon, 15 Jun 2015 21:03:31 -0400 (EDT) In-Reply-To: <878uboyvmh.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sat, 13 Jun 2015 14:23:34 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103976 Archived-At: > 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