Add conversion for affiliated keywords to wasm additional properties.

This commit is contained in:
Tom Alexander
2023-12-27 20:33:02 -05:00
parent 28ad4fd046
commit 9520e5814b
4 changed files with 99 additions and 19 deletions

View File

@@ -227,23 +227,7 @@ impl<'s, 'p> WasmElispCompare<'s, 'p> for WasmParagraph<'s, 'p> {
source: &'s str,
emacs: &'b Token<'s>,
) -> Result<WasmDiffResult<'s>, Box<dyn std::error::Error>> {
// TODO: Implement this.
let result = WasmDiffResult::default();
// let result = wasm_compare!(
// source,
// emacs,
// self,
// (
// EmacsField::Required(":path"),
// |w| w.path.as_ref().and_then(|p| p.to_str()),
// wasm_compare_property_quoted_string
// ),
// (
// EmacsField::Required(":CATEGORY"),
// |w| w.category.as_ref(),
// wasm_compare_property_quoted_string
// )
// );
let result = wasm_compare!(source, emacs, self,);
Ok(result)
}