Port capture group implementation to ParseState
This commit is contained in:
@@ -310,7 +310,7 @@ pub fn grammar(ts: TokenStream) -> TokenStream {
|
||||
let fn_name = &r.name;
|
||||
let generated = r.definition.generate_code();
|
||||
quote! {
|
||||
fn #fn_name(p: &mut crate::peg::ParseState) -> bool {
|
||||
fn #fn_name(p: &mut crate::peg::ParseState<()>) -> bool {
|
||||
#generated
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user