You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use nom_bibtex::Bibtex;
fn main() {
let src =
r#"@book {fake_book, title = {Escaping: all about the \{ character},}"#;
match Bibtex::parse(src) {
Ok(bib) => {
let entry = &bib.bibliographies()[0];
println!("{}", entry.tags().get("title").unwrap());
},
Err(_) => {
println!("Failed to correctly parse \\{{");
}
};
}
Expected output: Escaping: all about the \{ character or Escaping: all about the { character.
Observed output: Failed to correctly parse \{.
The text was updated successfully, but these errors were encountered:
Here is an example demonstrating the issue:
Expected output:
Escaping: all about the \{ character
orEscaping: all about the { character
.Observed output:
Failed to correctly parse \{
.The text was updated successfully, but these errors were encountered: