Implement fixed width area.

This commit is contained in:
Tom Alexander
2023-12-29 19:21:35 -05:00
parent 0897061ff6
commit fa31b001f4
2 changed files with 13 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ fn compare_json_value<'b, 's>(
(serde_json::Value::Object(w), Token::TextWithProperties(e)) if is_plain_text(w) => {
compare_plain_text(source, e, w)
}
(serde_json::Value::Null, Token::Atom("nil")) => Ok(WasmDiffResult::default()),
(serde_json::Value::Null, Token::Atom(_)) => todo!(),
(serde_json::Value::Null, Token::List(_)) => todo!(),
(serde_json::Value::Null, Token::TextWithProperties(_)) => todo!(),
@@ -213,7 +214,7 @@ fn compare_ast_node<'e, 's, 'w>(
(emacs_standard_properties.post_blank, "post-blank"),
] {
match (emacs_value, wasm_standard_properties.get(wasm_name)) {
(None, None) => {}
(None, None) | (None, Some(serde_json::Value::Null)) => {}
(None, Some(_)) => {
layer.status.push(WasmDiffStatus::Bad(
format!(