From unknown Sun Jun 22 00:43:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs 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: To: 15270@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.137837037032345 (code B ref -1); Thu, 05 Sep 2013 08:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Sep 2013 08:39:30 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) 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) Date: Thu, 5 Sep 2013 11:39:03 +0300 From: Bozhidar Batsov Message-ID: <2BAAD12BA3864781BD45D35513E14023@gmail.com> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="52284327_327b517e_99" 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --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-- From unknown Sun Jun 22 00:43:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Sep 2013 11:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15270 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Bozhidar Batsov Cc: 15270@debbugs.gnu.org Received: via spool by 15270-submit@debbugs.gnu.org id=B15270.137838153221964 (code B ref 15270); Thu, 05 Sep 2013 11:46:02 +0000 Received: (at 15270) by debbugs.gnu.org; 5 Sep 2013 11:45:32 +0000 Received: from localhost ([127.0.0.1]:41388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHY0B-0005iB-Fp for submit@debbugs.gnu.org; Thu, 05 Sep 2013 07:45:31 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:45191) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHY08-0005hs-K5 for 15270@debbugs.gnu.org; Thu, 05 Sep 2013 07:45:29 -0400 Received: by mail-wi0-f177.google.com with SMTP id cb5so1710489wib.10 for <15270@debbugs.gnu.org>; Thu, 05 Sep 2013 04:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=y6rV5hSOFm6Agtly+NDQW7l/Y5pmihXz58wCzlKiRU0=; b=w8ynBiXleSMMqJXLJqq9L/FTuzdUzIG6+hlBIj3lYXE0u1ic25RR26AztVmrhTrUfI T7B4JgwQTu+c6o+nDKUYscQveSQXO76MfCpociAjNhxCckeQtlhSAecetJMzxKxYhclb j1wJHrj0zoIwzQqAjIMqrJEGS9kdGlfMYLUwHqJg4ptRDoduY98OO48lJWzL7YC01D9E BV10RHuXB/rzS3ujsLv0zm7pSFwyD0V9vmWmPJqOwqF4TdJ5BIwTMl3fgp1F8BiK7T2m qEaqc0W2z6o9bbVnUTw8FlYMPfzEX2ORUuz91DskWYuxylS6mH0+Oz87D4DaXCJE36IG 0mTg== X-Received: by 10.180.183.51 with SMTP id ej19mr5978868wic.60.1378381522366; Thu, 05 Sep 2013 04:45:22 -0700 (PDT) Received: from axl (93-245-142.netrun.cytanet.com.cy. [93.109.245.142]) by mx.google.com with ESMTPSA id bh5sm11077161wib.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Sep 2013 04:45:21 -0700 (PDT) From: Dmitry Gutov References: <2BAAD12BA3864781BD45D35513E14023@gmail.com> Date: Thu, 05 Sep 2013 14:45:11 +0300 In-Reply-To: <2BAAD12BA3864781BD45D35513E14023@gmail.com> (Bozhidar Batsov's message of "Thu, 5 Sep 2013 11:39:03 +0300") Message-ID: <8761uffq60.fsf@yandex.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Bozhidar Batsov writes: > 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 WFM: http://i.imgur.com/YPsjoDS.png Have you tried it in the current trunk? The first END highlighting looks out of place, but it's caused by the "Perl-ish keywords" rule. From unknown Sun Jun 22 00:43:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs Resent-From: Bozhidar Batsov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Sep 2013 11:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15270 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 15270@debbugs.gnu.org Received: via spool by 15270-submit@debbugs.gnu.org id=B15270.137838174022293 (code B ref 15270); Thu, 05 Sep 2013 11:49:02 +0000 Received: (at 15270) by debbugs.gnu.org; 5 Sep 2013 11:49:00 +0000 Received: from localhost ([127.0.0.1]:41399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHY3X-0005nU-NQ for submit@debbugs.gnu.org; Thu, 05 Sep 2013 07:49:00 -0400 Received: from mail-ee0-f48.google.com ([74.125.83.48]:44585) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHY3V-0005nC-7o for 15270@debbugs.gnu.org; Thu, 05 Sep 2013 07:48:57 -0400 Received: by mail-ee0-f48.google.com with SMTP id l10so840421eei.21 for <15270@debbugs.gnu.org>; Thu, 05 Sep 2013 04:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=AqJp3uhExt0RFjZ0li3ODWY9lX/VfxFjkTxmjr6HmyQ=; b=0JbN1M3Q5zxyATKFEKlNo+lAJ0EzehnLHZRwWmIrQGxppa0f1mBEkxGAxp2KQfvflt d5MsTPAeU9FWCks/XAMqDzRtQ/bgTVef8jU5Y2PQMkDb8fBmoiLvjrimUcbt+m1HVZy6 PjMMlzhiaxeTi+npEsyjrToysw+WUXi+tbcXmZLuZe9h9Ik1R81A0H4DEYGsiFj5aFD8 47Icaccs1Le263u1DjtNl6PfpBobrF6j6jMVFFgSo+GCqZPDl3SLEbEwy7AcEs7vTuoj uG9LzzhpKpgSmDdr7thOA2sASFCrY3UAi1JjTrrgw05dQeVyxwH+8pzw114cQjVArnxJ w31g== X-Received: by 10.14.210.8 with SMTP id t8mr12817539eeo.39.1378381731326; Thu, 05 Sep 2013 04:48:51 -0700 (PDT) Received: from [192.168.1.28] ([95.87.231.111]) by mx.google.com with ESMTPSA id j7sm47983433eeo.15.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Sep 2013 04:48:50 -0700 (PDT) Date: Thu, 5 Sep 2013 14:48:54 +0300 From: Bozhidar Batsov Message-ID: <56695F7DA90444A0A0D4307B3A520E4B@gmail.com> In-Reply-To: <8761uffq60.fsf@yandex.ru> References: <2BAAD12BA3864781BD45D35513E14023@gmail.com> <8761uffq60.fsf@yandex.ru> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="52286fa6_5d5babb3_99" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --52286fa6_5d5babb3_99 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline I guess this is fixed in the trunk, but I think the highlighting of the first END in the heredoc should be corrected as well. -- Cheers, Bozhidar On Thursday, September 5, 2013 at 2:45 PM, Dmitry Gutov wrote: > Bozhidar Batsov writes: > > > 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 > > WFM: http://i.imgur.com/YPsjoDS.png > > Have you tried it in the current trunk? > > The first END highlighting looks out of place, but it's caused by the > "Perl-ish keywords" rule. > > --52286fa6_5d5babb3_99 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I guess this is fixed in the trunk, but I think the highlighting= of the first END in the heredoc should be corrected as well.

-- 
Cheers,
=
Bozhidar

=20

On Thursday, September= 5, 2013 at 2:45 PM, Dmitry Gutov wrote:

Bozhidar Batsov <bozhidar.batsov=40gmail.com>= writes:

Code= like the following breaks font-locking logic of ruby-mode:
expected=5Fsource =3D <<-END.strip=5Findent
e= ach do =7Cx=7C
some=5Fmethod
other=5Fmethod
end
END

The second END gets highlight= ed as a constant, instead of a string. I
guess the two consecut= ive ends cause the problem.

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


Have you tried it in the current trunk=3F<= /div>

The first END highlighting looks out of place, b= ut it's caused by the
=22Perl-ish keywords=22 rule.
= =20 =20 =20 =20 =20

--52286fa6_5d5babb3_99-- From unknown Sun Jun 22 00:43:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Bozhidar Batsov Subject: bug#15270: closed (Re: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs) Message-ID: References: <522881CD.9000304@yandex.ru> <2BAAD12BA3864781BD45D35513E14023@gmail.com> X-Gnu-PR-Message: they-closed 15270 X-Gnu-PR-Package: emacs Reply-To: 15270@debbugs.gnu.org Date: Thu, 05 Sep 2013 13:07:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1378386424-29964-1" This is a multi-part message in MIME format... ------------=_1378386424-29964-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15270: 24.3; ruby-mode font-lock bug related to HERE docs which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15270@debbugs.gnu.org. --=20 15270: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15270 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1378386424-29964-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15270-done) by debbugs.gnu.org; 5 Sep 2013 13:06:37 +0000 Received: from localhost ([127.0.0.1]:41514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHZGe-0007mT-45 for submit@debbugs.gnu.org; Thu, 05 Sep 2013 09:06:36 -0400 Received: from mail-bk0-f48.google.com ([209.85.214.48]:64045) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHZGb-0007mB-K2 for 15270-done@debbugs.gnu.org; Thu, 05 Sep 2013 09:06:34 -0400 Received: by mail-bk0-f48.google.com with SMTP id my13so734705bkb.35 for <15270-done@debbugs.gnu.org>; Thu, 05 Sep 2013 06:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Buxeq/4JDA4CEXdve7w1M/E0cJEoC+6oFSwEVXmiW8s=; b=adNVDR9Bd7M81Himht0QxMqWz7hCpqFvkSJBQcQ3aTP7PgbkcXxsUMgPAOiwbxQkwc 10ufQGYJt3kl8+5eDL9vrya17hDi7JBpQiLwU0CwXnK6mbt5u4DmV5Fwrdey2nJLaUKR Y8wzVXhaj6ZrDeIQLsAtVqewRQop2YZ5gtZBDG50F8V97mjh1Kavgip2eLmnGZT45OU/ JouGxDsx4WObGygG5kesWzBW92jAiUTlb63lBX5mE21rve8TCy9HiX8n3ZzKth+ZBLv2 9N1qLTo3TqXzgQN/OntCC4AOb50MALAvAb7f2pDB+dBn9UUChXOb8rBzNeYvNQVlE1Ym tgoA== X-Received: by 10.205.24.131 with SMTP id re3mr7160914bkb.8.1378386387551; Thu, 05 Sep 2013 06:06:27 -0700 (PDT) Received: from [192.168.10.31] (93-245-142.netrun.cytanet.com.cy. [93.109.245.142]) by mx.google.com with ESMTPSA id a4sm2361966bko.11.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 06:06:26 -0700 (PDT) Message-ID: <522881CD.9000304@yandex.ru> Date: Thu, 05 Sep 2013 16:06:21 +0300 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Bozhidar Batsov Subject: Re: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs References: <2BAAD12BA3864781BD45D35513E14023@gmail.com> <8761uffq60.fsf@yandex.ru> <56695F7DA90444A0A0D4307B3A520E4B@gmail.com> In-Reply-To: <56695F7DA90444A0A0D4307B3A520E4B@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15270-done Cc: 15270-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Version: 24.4 On 05.09.2013 14:48, Bozhidar Batsov wrote: > I guess this is fixed in the trunk, but I think the highlighting of the > first END in the heredoc should be corrected as well. Ok, fixed for heredocs (gave BEGIN/END lower priority). ------------=_1378386424-29964-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Sep 2013 08:39:30 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) 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) Date: Thu, 5 Sep 2013 11:39:03 +0300 From: Bozhidar Batsov To: bug-gnu-emacs@gnu.org Message-ID: <2BAAD12BA3864781BD45D35513E14023@gmail.com> Subject: 24.3; ruby-mode font-lock bug related to HERE docs X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="52284327_327b517e_99" 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --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-- ------------=_1378386424-29964-1--