zepinglee / lua-bibtex-parser

MIT License
4 stars 0 forks source link

Could not parse the comment line from JabRef. #2

Open jiucenglou opened 1 month ago

jiucenglou commented 1 month ago

JabRef puts the line @Comment{jabref-meta: databaseType:bibtex;} at the end of the bib by design. It seems lua-bibtex-parser does not parse this line, since print(#library.comments) prints 0.

zepinglee commented 1 month ago

The original BibTeX skips to the next @ character if it meets an @comment (see bibtex.web#L5485-L5494) and this Lua parser currently follows BibTeX.