Date: 2007-06-13 06:32
Sender: Ryan Davis
I've reworked the diff into the following. Does it still look
acceptable to you?
Index: lib/irb/ruby-lex.rb
=================================================================
==
--- lib/irb/ruby-lex.rb (revision 12516)
+++ lib/irb/ruby-lex.rb (working copy)
@@ -1099,6 +1099,16 @@
end
def read_escape
+ if @ltype == "'" then
+ case ch = getc
+ when "\\", "'"
+ # do nothing
+ else
+ ungetc ch
+ end
+ return
+ end
+
case ch = getc
when "\n", "\r", "\f"
when "\\", "n", "t", "r",
"f", "v", "a", "e",
"b", "s" #"
|