Indeed, thank you all! It seems the lib is not very robust w.r.t. the very bad bibtex "standard". I think it should skip everything that does not begin with "@" outside entries, but instead wants only "@" and %-comments.
Laurent On Mon, May 21, 2012 at 5:42 PM, Danny Yoo <d...@hashcollision.org> wrote: > I think there's a bug in the library. There appears to be a missing > call to (slurp-whitespace ip) in the parsing library. I'll send a bug > report and a patch to the Racket developers. A diff follows below for > those who like looking at patch files. :) > > > > ################################################################ > kui ~/local/racket/collects/scriblib $ git diff bibtex.rkt > diff --git a/collects/scriblib/bibtex.rkt b/collects/scriblib/bibtex.rkt > index 11d5636..c826187 100644 > --- a/collects/scriblib/bibtex.rkt > +++ b/collects/scriblib/bibtex.rkt > @@ -81,6 +81,7 @@ > [#\= > (slurp-whitespace ip) > (define aval (read-value ip)) > + (slurp-whitespace ip) > (match (read-char ip) > [#\, > (hash-set (loop) atag aval)] >
____________________ Racket Users list: http://lists.racket-lang.org/users