bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs


From: Dmitry Gutov
Subject: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs
Date: Thu, 05 Sep 2013 14:45:11 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Bozhidar Batsov <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]