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: Dmitry Gutov <dgutov <at> yandex.ru>
To: Bozhidar Batsov <bozhidar.batsov <at> gmail.com>
Cc: 15270 <at> debbugs.gnu.org
Subject: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs
Date: Thu, 05 Sep 2013 14:45:11 +0300
Bozhidar Batsov <bozhidar.batsov <at> gmail.com> 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.




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.