Define `Warning` type and start annotating possible parse errors(#131)
MergedBenchmarks
Passed
benches/element_attributes.rs::benches::perf::element attributes benches/inline_macro.rs::benches::inline_macro::inline macro benches/simple_parse.rs::benches::two_blocks_and_title::2 blocks + title section with 2 blocksRegression benches/section_with_two_blocks.rs::benches::section_with_two_blocks::section with 2 blocksCommits
Click on a commit to change the comparison rangeRefine error handling in ElementAttribute parsing Merge branch 'main' into error-handling Fix elided-lifetimes warning in Rust nightly Handle errors in `MacroBlock::parse` Resolve lifetime warning in nightly builds Add warning for missing comma after quoted attribute value Test coverage: Ensure Attrlist::parse propagates warning from ElementAttribute::parse Add coverage for warnings.rs Test coverage for `unwrap_if_no_warnings` Add warnings for `MacroBlock::parse` `Attrlist::parse` never returned `None`, so it doesn't need to return `Option` Add warnings from `Block::parse` Allow `parse_blocks_until` to return an empty vec and consider that successful Block::parse should propagate warnings from MacroBlocK::parse, but only if a successful match SectionBlock::parse relays warnings up the chain Block::parse should relay errors from SectionBlock::parse Add coverage for parse_utils::parse_blocks_until Add missing elided lifetime Work around unreachable line Add warnings support to Document::parse and Header::parse Add test coverage for warnings in both document header and document body Document::parse no longer returns Option<Document>
Parsing now always succeeds, but may also signal any number of warnings. Remove dead_code permission; no longer needed Copyright © 2024 CodSpeed Technology SAS. All rights reserved.