unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Cc: 15270@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	[thread overview]
Message-ID: <8761uffq60.fsf@yandex.ru> (raw)
In-Reply-To: <2BAAD12BA3864781BD45D35513E14023@gmail.com> (Bozhidar Batsov's message of "Thu, 5 Sep 2013 11:39:03 +0300")

Bozhidar Batsov <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.





  reply	other threads:[~2013-09-05 11:45 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 [this message]
2013-09-05 11:48   ` Bozhidar Batsov
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8761uffq60.fsf@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=15270@debbugs.gnu.org \
    --cc=bozhidar.batsov@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).