1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
dave 2004-06-22 16:47:31 +00:00
parent d745e584e9
commit 256be3c09c
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 23 01:45:27 2004 Dave Thomas <dave@pragprog.com>
* 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 <ocean@m2.ccsnet.ne.jp> Wed Jun 23 00:20:20 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* ext/win32ole/win32ole.c (ole_hresult2msg): remove trailing * ext/win32ole/win32ole.c (ole_hresult2msg): remove trailing

View file

@ -1123,6 +1123,7 @@ class RubyLex
def identify_quotation(initial_char) def identify_quotation(initial_char)
ch = getc ch = getc
if lt = PERCENT_LTYPE[ch] if lt = PERCENT_LTYPE[ch]
initial_char += ch
ch = getc ch = getc
elsif ch =~ /\W/ elsif ch =~ /\W/
lt = "\"" lt = "\""