all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bozhidar Batsov <bozhidar.batsov@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 15270@debbugs.gnu.org
Subject: bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs
Date: Thu, 5 Sep 2013 14:48:54 +0300	[thread overview]
Message-ID: <56695F7DA90444A0A0D4307B3A520E4B@gmail.com> (raw)
In-Reply-To: <8761uffq60.fsf@yandex.ru>

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

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 <bozhidar.batsov@gmail.com (mailto:bozhidar.batsov@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.
> 
> 



[-- Attachment #2: Type: text/html, Size: 1858 bytes --]

  reply	other threads:[~2013-09-05 11:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05  8:39 bug#15270: 24.3; ruby-mode font-lock bug related to HERE docs Bozhidar Batsov
2013-09-05 11:45 ` Dmitry Gutov
2013-09-05 11:48   ` Bozhidar Batsov [this message]
2013-09-05 13:06     ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56695F7DA90444A0A0D4307B3A520E4B@gmail.com \
    --to=bozhidar.batsov@gmail.com \
    --cc=15270@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.