diff --git a/src/compare/diff.rs b/src/compare/diff.rs index b60d73d..24cbe2b 100644 --- a/src/compare/diff.rs +++ b/src/compare/diff.rs @@ -3217,10 +3217,26 @@ fn compare_export_snippet<'b, 's>( emacs: &'b Token<'s>, rust: &'b ExportSnippet<'s>, ) -> Result, Box> { - let this_status = DiffStatus::Good; - let message = None; + let mut this_status = DiffStatus::Good; + let mut message = None; - // TODO: Compare :back-end :value + if let Some((new_status, new_message)) = compare_properties!( + emacs, + rust, + ( + EmacsField::Required(":back-end"), + |r| Some(r.backend), + compare_property_quoted_string + ), + ( + EmacsField::Required(":value"), + |r| r.contents, + compare_property_quoted_string + ) + )? { + this_status = new_status; + message = new_message; + } Ok(DiffResult { status: this_status,