From: Tanaka Akira Date: 2008-02-19T15:59:01+09:00 Subject: Re: possible bug in regexp lexing In article <96106826-DFF4-4BFC-9938-3CB54F28F9F1@zenspider.com>, Ryan Davis writes: > 502 % svn diff parse.y > Index: parse.y > =================================================================== > --- parse.y (revision 15546) > +++ parse.y (working copy) > @@ -2968,7 +2968,7 @@ > return -1; > > default: > - if (c != '\\' || c != term) > + if (c == '\\' || c != term) > tokadd('\\'); > tokadd(c); > } Not good idea. % ./miniruby -ve 'p %r{\}}' ruby 1.8.6 (2008-02-05 patchlevel 5000) [i686-linux] -e:1: warning: regexp has `}' without escape /}/ -- Tanaka Akira