e$B;3K$G$9!#e(B
http://rubyforge.org/tracker/index.php?func=detail&aid=3302&group_id=426&atid=1698
e$B$NLdBj$J$N$G$9$,!"2<$N%Q%C%A$G<#$k$h$&$G$9!#$3$l$G4V0c$$$J$$$G$7$g$&$+!)e(B
[ruby-talk:181631] e$B$NJ}$Ke(B rdoc
e$B$NF1MM$NLdBj$,Js9p$5$l$F$?$N$G$9$,!"%Q%C%A$be(B
e$BA4$/F1$8$K$J$j$^$7$?!#%3!<%I$N=P=j$,F1$8!)e(B
Index: ruby-lex.rb
RCS file: /src/ruby/lib/irb/ruby-lex.rb,v
retrieving revision 1.28
diff -u -w -b -p -r1.28 ruby-lex.rb
— ruby-lex.rb 30 Jun 2005 10:07:29 -0000 1.28
+++ ruby-lex.rb 27 Feb 2006 12:10:40 -0000
@@ -309,7 +309,7 @@ class RubyLex
“q” => “'”,
“Q” => “"”,
“x” => “`”,
- “r” => “/”,
- “r” => “/”,
“w” => “]”,
“W” => “]”,
“s” => “:”
@@ -326,14 +326,14 @@ class RubyLex
“'” => TkSTRING,
“"” => TkSTRING,
“`” => TkXSTRING,
- “/” => TkREGEXP,
- “/” => TkREGEXP,
“]” => TkDSTRING,
“:” => TkSYMBOL
}
DLtype2Token = {
“"” => TkDSTRING,
“`” => TkDXSTRING,
- “/” => TkDREGEXP,
- “/” => TkDREGEXP,
}
def lex_init()
@@ -1040,7 +1040,7 @@ class RubyLex
break
elsif @ltype != “'” && @ltype != “]” && @ltype != “:” and ch == “#”
subtype = true
- elsif ch == ‘\’ #’
- elsif @ltype != “'” && @ltype != “/” and ch == ‘\’ #’
read_escape
end
if PERCENT_PAREN.values.include?(@quoted)