diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/irb/ruby-lex.rb | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Aug 7 00:05:38 2007 Keiju Ishitsuka <[email protected]> + + * irb/ruby-lex.rb: support for '\c'. [ruby-talk:263508] + Mon Aug 6 20:29:22 2007 Koichi Sasada <[email protected]> * insnhelper.ci, insns.def: move some statements to functions. diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index d8442f305b..561028fb6c 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -1054,6 +1054,12 @@ class RubyLex break elsif @ltype != "'" && @ltype != "]" && @ltype != ":" and ch == "#" subtype = true + elsif ch == '\\' and @ltype == "'" #' + case ch = getc + when "\\", "\n", "'" + else + ungetc + end elsif ch == '\\' #' read_escape end |