зеркало из https://github.com/github/ruby.git
* lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variables
are delimited by a semicolon. supported Vim style. reapplied r24988 with fixing a typo for shebang. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
30527783c7
Коммит
2df7054c30
|
@ -1,3 +1,9 @@
|
|||
Fri Apr 2 14:24:27 2010 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. reapplied
|
||||
r24988 with fixing a typo for shebang.
|
||||
|
||||
Fri Apr 2 14:16:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): parse also rdoc
|
||||
|
|
|
@ -387,7 +387,7 @@ The internal error was:
|
|||
end
|
||||
|
||||
if defined? Encoding then
|
||||
if /coding:\s*([\w-]+)/i =~ content[/\A(?:.*\n){0,2}/]
|
||||
if /coding[=:]\s*([^\s;]+)/i =~ content[%r"\A(?:#!.*\n)?.*\n"]
|
||||
if enc = ::Encoding.find($1)
|
||||
content.force_encoding(enc)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче