From 256be3c09c862ec0f52fbf36ec5fcebee6951163 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 22 Jun 2004 16:47:31 +0000 Subject: [PATCH] Fixed parsing of %r{} when generating source popup git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/rdoc/parsers/parse_rb.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 87c20a741a..54dbc26720 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 23 01:45:27 2004 Dave Thomas + + * lib/rdoc/parsers/parse_rb.rb (RubyLex::identify_quotation): + Fix problem with the 'r' being dropped from %r{xxx} + Wed Jun 23 00:20:20 Hirokazu Yamamoto * ext/win32ole/win32ole.c (ole_hresult2msg): remove trailing diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index bd2414826c..70236af343 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -1123,6 +1123,7 @@ class RubyLex def identify_quotation(initial_char) ch = getc if lt = PERCENT_LTYPE[ch] + initial_char += ch ch = getc elsif ch =~ /\W/ lt = "\""