Ported examples 00 and 01 to proc macro interface.

This commit is contained in:
2026-03-21 21:51:50 -04:00
parent 437b318ad9
commit c9966b79ef
8 changed files with 864 additions and 42 deletions

View File

@@ -434,7 +434,9 @@ fn looks_like_node(input: ParseStream<'_>) -> Result<bool> {
}
let props_content;
parenthesized!(props_content in fork);
let _ = Punctuated::<Property, Token![,]>::parse_terminated(&props_content)?;
if Punctuated::<Property, Token![,]>::parse_terminated(&props_content).is_err() {
return Ok(false);
}
Ok(fork.peek(syn::token::Brace))
}