diff options
Diffstat (limited to 'pest_consume_macros')
-rw-r--r-- | pest_consume_macros/src/lib.rs | 6 | ||||
-rw-r--r-- | pest_consume_macros/src/match_nodes.rs (renamed from pest_consume_macros/src/match_inputs.rs) | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pest_consume_macros/src/lib.rs b/pest_consume_macros/src/lib.rs index 7f9f464..d726b5d 100644 --- a/pest_consume_macros/src/lib.rs +++ b/pest_consume_macros/src/lib.rs @@ -6,7 +6,7 @@ extern crate proc_macro; mod make_parser; -mod match_inputs; +mod match_nodes; use proc_macro::TokenStream; @@ -19,8 +19,8 @@ pub fn parser(attrs: TokenStream, input: TokenStream) -> TokenStream { } #[proc_macro_hack::proc_macro_hack] -pub fn match_inputs(input: TokenStream) -> TokenStream { - TokenStream::from(match match_inputs::match_inputs(input) { +pub fn match_nodes(input: TokenStream) -> TokenStream { + TokenStream::from(match match_nodes::match_nodes(input) { Ok(tokens) => tokens, Err(err) => err.to_compile_error(), }) diff --git a/pest_consume_macros/src/match_inputs.rs b/pest_consume_macros/src/match_nodes.rs index 773f806..251b7ef 100644 --- a/pest_consume_macros/src/match_inputs.rs +++ b/pest_consume_macros/src/match_nodes.rs @@ -186,7 +186,7 @@ fn make_parser_branch( )) } -pub fn match_inputs( +pub fn match_nodes( input: proc_macro::TokenStream, ) -> Result<proc_macro2::TokenStream> { let input: ParseChildrenInput = syn::parse(input)?; |