On Thu, Apr 05, 2007 at 11:35:28AM +0200, Abdelrazak Younes wrote:

> Abdelrazak Younes wrote:
> 
> >      if (!big || str == "(" || str == ")" || str == "[" || str == "]")
> > -        return str;
> > +        return fromqstr(str);
> 
> By the way, is there a reason why single char delimiter is excluded from 
> 'big'. The above code look very suspicious to me. Shouldn't it be:
> 
>       if (!big && (str == "(" || str == ")" || str == "[" || str == "]"))
>           return str;
>           return fromqstr(str);

No. For variable size delimiters, str should be always returned as is,
whereas for big delimiters only when str is one of "(", ")", "[", or "]".
Otherwise it should be prefixed by "\".

-- 
Enrico

Reply via email to