Port capture group implementation to ParseState

This commit is contained in:
2025-06-01 17:58:19 -07:00
parent 96b6733dcb
commit 7940183c70
2 changed files with 73 additions and 5 deletions
+1 -1
View File
@@ -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
}
}