typst / biblatex

A Rust crate for parsing and writing BibTeX and BibLaTeX files.
Apache License 2.0
120 stars 15 forks source link

Error when encountering bibtex comments #30

Closed m-haug closed 1 year ago

m-haug commented 1 year ago

I have created a biblatex bibliography file in JabRef and would like to use hayagriva to format reference lists from that. However, with the new version 0.2.1 of hayagriva, I get the following error message:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: [Parse(ParseError { span: 98803..98803, kind: Expected(Comma) })]'

The line indicated by the error span is

@Comment{jabref-meta: databaseType:biblatex;}

which is valid bibtex syntax.

I believe biblatex needs to be updated to support bibtex's @Comment syntax. Previously, with hayagriva version 0.1.1, there was no issue.

m-haug commented 1 year ago

Seems to be fixed with biblatex 0.8.0 and hayagriva 0.3.0.