ruby-core MLに投稿されたruby-mode.elに対するパッチ

Subject: [ruby-core:17615] [PATCH] ruby-mode.el: Fix here-doc strings with inner quotes
From: Nathan Weizenbaum <nex342 gmail.com>
Date: Sat, 5 Jul 2008 17:57:32 +0900

This is a multi-part message in MIME format.

                            • 050607010203070700060801

Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

At the moment, ruby-mode.el uses font-lock-keywords as opposed to
font-lock-syntactic-keywords to highlight here-doc strings. This means
that Emacs doesn't actually recognize them as strings, so unbalanced
quotes paint the whole buffer in font-lock-string-face. In addition, it
improperly highlights strings that look like nested heredocs, like the
following:

<<FOO
<<BAR
BAR
FOO

The attached patch uses font-lock-syntactic-keywords instead, so that
heredocs actually register as strings, so stray quotation marks don't
wreak havoc.

パッチの対象がruby-mode.elなので、興味がある。後で読む。