* lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
merged Mr. Ishizuka's lib/irb/ruby-lex.rb 's patch rev 1.29. [ruby-talk:181631] [ruby-dev:28404] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e54adb7d1d
commit
0ecd958d97
@ -1,3 +1,9 @@
|
||||
Wed Mar 1 00:15:51 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
|
||||
merged Mr. Ishizuka's lib/irb/ruby-lex.rb 's patch rev 1.29.
|
||||
[ruby-talk:181631] [ruby-dev:28404]
|
||||
|
||||
Fri Feb 24 20:21:38 2006 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* test/drb/drbtest.rb (add_service_command): quote pathnames in the
|
||||
|
@ -560,7 +560,7 @@ class RubyLex
|
||||
"q" => "\'",
|
||||
"Q" => "\"",
|
||||
"x" => "\`",
|
||||
"r" => "\/",
|
||||
"r" => "/",
|
||||
"w" => "]"
|
||||
}
|
||||
|
||||
@ -575,7 +575,7 @@ class RubyLex
|
||||
"\'" => TkSTRING,
|
||||
"\"" => TkSTRING,
|
||||
"\`" => TkXSTRING,
|
||||
"\/" => TkREGEXP,
|
||||
"/" => TkREGEXP,
|
||||
"]" => TkDSTRING
|
||||
}
|
||||
Ltype2Token.default = TkSTRING
|
||||
@ -583,7 +583,7 @@ class RubyLex
|
||||
DLtype2Token = {
|
||||
"\"" => TkDSTRING,
|
||||
"\`" => TkDXSTRING,
|
||||
"\/" => TkDREGEXP,
|
||||
"/" => TkDREGEXP,
|
||||
}
|
||||
|
||||
def lex_init()
|
||||
@ -1334,7 +1334,7 @@ class RubyLex
|
||||
end
|
||||
end
|
||||
|
||||
when "C", "c", "^"
|
||||
when "C", "c" #, "^"
|
||||
res << ch
|
||||
if ch == "C" and (ch = getc) != "-"
|
||||
ungetc
|
||||
|
Loading…
x
Reference in New Issue
Block a user