From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.bugs Subject: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs Date: Thu, 5 Sep 2013 11:39:03 +0300 Message-ID: <2BAAD12BA3864781BD45D35513E14023@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="52284327_327b517e_99" X-Trace: ger.gmane.org 1378370414 32616 80.91.229.3 (5 Sep 2013 08:40:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2013 08:40:14 +0000 (UTC) To: 15270@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 05 10:40:17 2013 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 1VHV6v-0000Jg-66 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 10:40:17 +0200 Original-Received: from localhost ([::1]:57538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHV6u-0000bI-Pn for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 04:40:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHV6m-0000b8-WB for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 04:40:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHV6h-0005jJ-IY for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 04:40:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHV6h-0005it-F5 for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 04:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VHV6g-0008Qx-SG for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 04:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bozhidar Batsov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Sep 2013 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15270 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137837037032345 (code B ref -1); Thu, 05 Sep 2013 08:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Sep 2013 08:39:30 +0000 Original-Received: from localhost ([127.0.0.1]:41118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHV6A-0008Pc-1h for submit@debbugs.gnu.org; Thu, 05 Sep 2013 04:39:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34473) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHV67-0008PN-Lb for submit@debbugs.gnu.org; Thu, 05 Sep 2013 04:39:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHV5x-0005WZ-3d for submit@debbugs.gnu.org; Thu, 05 Sep 2013 04:39:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHV5x-0005WV-0I for submit@debbugs.gnu.org; Thu, 05 Sep 2013 04:39:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHV5r-0000UP-9h for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 04:39:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHV5k-0005U6-KJ for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 04:39:11 -0400 Original-Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]:49793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHV5k-0005Ty-CU for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 04:39:04 -0400 Original-Received: by mail-ea0-f171.google.com with SMTP id n15so727860ead.2 for ; Thu, 05 Sep 2013 01:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type; bh=zAJzBhyGKFg/mA5irIOxB0RHuhCc0AWtFMRMcoT3ASc=; b=bcjqf3IGoyT0PzCydlGHHPbsRPYihz/ax9X6jmbMK+IdP4ObsC+LW/Tuwg24XfXPeS OY5J8t0aPoRIvPXuJXw+pCJZ9Y2eq3fN/aPk4f7dMiCnCjxBCGXCtmpHuVE7TrbmhvE0 XAVuBBLAQ9zjGeQ92DwnmjLCoC3teegFP63ToXeBZVqXfnrlOneVjepjDns7SLoJpIIA itTEK2FgaZQb8BjykwDzVUcBEwYvY26g+GU+WnsNky4JP19hP3kesCMKmbUn6X9Jy6Ev B4U+cZ/gF12U2SBeLHVYacwGjo1H1yFbMgpdeA1MTxQ27DdwkxRbdfjOuMoUqZpPlMhC NxjA== X-Received: by 10.14.194.131 with SMTP id m3mr11759165een.45.1378370343149; Thu, 05 Sep 2013 01:39:03 -0700 (PDT) Original-Received: from [192.168.1.28] ([95.87.231.111]) by mx.google.com with ESMTPSA id a6sm46684892eei.10.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Sep 2013 01:39:02 -0700 (PDT) X-Mailer: sparrow 1.6.4 (build 1178) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:77979 Archived-At: --52284327_327b517e_99 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Code like the following breaks font-locking logic of ruby-mode: expected_source = <<-END.strip_indent each do |x| some_method other_method end END The second END gets highlighted as a constant, instead of a string. I guess the two consecutive ends cause the problem. Here's a screenshot - http://i42.tinypic.com/122jeap.jpg In GNU Emacs 24.3.1 (x86_64-apple-darwin12.4.0, NS apple-appkit-1187.39) of 2013-08-12 on Bozhidars-MacBook-Pro.local Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure '--prefix=/usr/local/Cellar/emacs/24.3' '--without-dbus' '--enable-locallisppath=/usr/local/share/emacs/site-lisp' '--infodir=/usr/local/Cellar/emacs/24.3/share/info/emacs' '--without-gnutls' '--with-ns' '--disable-ns-self-contained' 'CC=cc'' -- Cheers, Bozhidar --52284327_327b517e_99 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Code like the following breaks font-locking logi= c of ruby-mode:

expected=5Fsource =3D <&= lt;-END.strip=5Findent
           = ;   each do =7Cx=7C
          &nb= sp;     some=5Fmethod
        &nb= sp;       other=5Fmethod
      &n= bsp;       end
         = ;   END

The second END gets highlighted as a constant, instead of a string. I gu= ess the two consecutive ends cause the problem.

Here's a screenshot - http://i42.tinypic.com/122jeap.jpg=

In GNU Emacs 24.3.1 (x86=5F64-apple-darwin= 12.4.0, NS apple-appkit-1187.39)
 of 2013-08-12 on Bozhida= rs-MacBook-Pro.local
Windowing system distributor =60Apple', ve= rsion 10.3.1187
Configured using:
 =60configure = '--prefix=3D/usr/local/Cellar/emacs/24.3' '--without-dbus'
&nbs= p;'--enable-locallisppath=3D/usr/local/share/emacs/site-lisp'
&= nbsp;'--infodir=3D/usr/local/Cellar/emacs/24.3/share/info/emacs'
 '--without-gnutls' '--with-ns' '--disable-ns-self-contained' 'CC=3D= cc''

-- 
Cheers,
=
Bozhidar

--52284327_327b517e_99--