summaryrefslogtreecommitdiff
path: root/pest_consume_macros
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pest_consume_macros/src/lib.rs6
-rw-r--r--pest_consume_macros/src/match_inputs.rs (renamed from pest_consume_macros/src/parse_children.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 dd437f6..b5368ec 100644
--- a/pest_consume_macros/src/lib.rs
+++ b/pest_consume_macros/src/lib.rs
@@ -7,7 +7,7 @@
extern crate proc_macro;
mod make_parser;
-mod parse_children;
+mod match_inputs;
use proc_macro::TokenStream;
@@ -20,8 +20,8 @@ pub fn make_parser(attrs: TokenStream, input: TokenStream) -> TokenStream {
}
#[proc_macro]
-pub fn parse_children(input: TokenStream) -> TokenStream {
- TokenStream::from(match parse_children::parse_children(input) {
+pub fn match_inputs(input: TokenStream) -> TokenStream {
+ TokenStream::from(match match_inputs::match_inputs(input) {
Ok(tokens) => tokens,
Err(err) => err.to_compile_error(),
})
diff --git a/pest_consume_macros/src/parse_children.rs b/pest_consume_macros/src/match_inputs.rs
index 8feef03..3a325a6 100644
--- a/pest_consume_macros/src/parse_children.rs
+++ b/pest_consume_macros/src/match_inputs.rs
@@ -170,7 +170,7 @@ fn make_parser_branch(
))
}
-pub fn parse_children(
+pub fn match_inputs(
input: proc_macro::TokenStream,
) -> Result<proc_macro2::TokenStream> {
let input: ParseChildrenInput = syn::parse(input)?;