Ported examples 00 and 01 to proc macro interface.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user