You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say #[parse_terminated] takes no arguments, but attempting to use it gives the error:
expected parenthesis in `#[parse_terminated(...)]`
Example:
mod kw {
syn::custom_keyword!(nop);}#[derive(Parse)]pubstructProgram{#[parse_terminated]instructions:Punctuated<Instruction,Token![,]>,}#[derive(Parse)]pubenumInstruction{#[peek(kw::nop, name = "nop")]Nop,}