diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-28 15:21:24 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-28 15:21:24 +0000 |
| commit | 5db0fe4cbd5279a817d177c031b8d9d07416d38b (patch) | |
| tree | 9f41dd5d4018d90eeb66368c1fdc789d0cb97702 /lib | |
| parent | ec649c83314445272cd7fe286508a39414690af7 (diff) | |
| download | ruby-5db0fe4cbd5279a817d177c031b8d9d07416d38b.tar.gz ruby-5db0fe4cbd5279a817d177c031b8d9d07416d38b.tar.xz ruby-5db0fe4cbd5279a817d177c031b8d9d07416d38b.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@10004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index d89412573..fedc67e51 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -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 |
