GNU bug report logs - #15270
24.3; ruby-mode font-lock bug related to HERE docs

Previous Next

Package: emacs;

Reported by: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>

Date: Thu, 5 Sep 2013 08:40:02 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
Subject: bug#15270: closed (Re: bug#15270: 24.3; ruby-mode font-lock bug
 related to HERE docs)
Date: Thu, 05 Sep 2013 13:07:04 +0000
[Message part 1 (text/plain, inline)]
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 <at> debbugs.gnu.org.

-- 
15270: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15270
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
Cc: 15270-done <at> debbugs.gnu.org
Subject: Re: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs
Date: Thu, 05 Sep 2013 16:06:21 +0300
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).

[Message part 3 (message/rfc822, inline)]
From: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; ruby-mode font-lock bug related to HERE docs
Date: Thu, 5 Sep 2013 11:39:03 +0300
[Message part 4 (text/plain, 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

[Message part 5 (text/html, inline)]

This bug report was last modified 11 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.