charlesvdv / nom-bibtex

A feature complete bibtex parser using nom
https://docs.rs/nom-bibtex
MIT License
22 stars 15 forks source link

Fix handling of @ and " characters in bracketed strings #14

Closed emarsden closed 2 years ago

emarsden commented 2 years ago

Change the parsing of bracketed strings to allow "@" character, as well as "quoted" strings. Two example fields that seem legitimate (and are accepted by standard bibtex parsers such as the legacy bibtex engine and pybtex, and which appear in .bib files in the wild) are

title = {True: love and @jlo} title = {True: love and "Trump"}

Disable an existing test that doesn't allow the following field, which seems legitimate:

title = { @{test} }