From: Shane Liesegang Date: 2007-08-30T03:08:45+09:00 Subject: Re: IRB module with non-blocking asynchronous gets For anyone still reading this thread (or who stumbles across it in the future), I have been able to solve the string continuation problem -- it may be a bit inefficient, but I run my own processing on the line before trying to pass it to the lexer. If I determine that it's the start of a string continuation, I set the flags appropriately. No code in pastie this time, but the algorithm for finding unfinished strings is pretty straightforward, provided you cover all the cases provided in Ruby (single quotes, double quotes, %q, %w, %x, %Q, %W, %X, and heredocs). I leave it as an exercise to the reader. :-) -- Posted via http://www.ruby-forum.com/.