* lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variables

are delimited by a semicolon.  supported Vim style.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-18 00:02:35 +00:00
Родитель 263abf2963
Коммит 70f03998c0
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Fri Sep 18 09:02:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variables
are delimited by a semicolon. supported Vim style.
Fri Sep 18 07:06:41 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/fileutils/test_fileutils.rb: add a test for [ruby-dev:39345]

Просмотреть файл

@ -209,8 +209,8 @@ module RDoc
File.read filename
end
if defined? Encoding then
if /coding:\s*(\S+)/ =~ content[/\A(?:.*\n){0,2}/]
if defined?(::Encoding) then
if /coding[=:]\s*([^\s;]+)/ =~ content[/\A(?:!.*\n)?(.*\n)/, 1]
if enc = ::Encoding.find($1)
content.force_encoding(enc)
end