summaryrefslogtreecommitdiff
path: root/pest_consume_macros
diff options
context:
space:
mode:
authorNadrieril2019-09-11 21:11:39 +0200
committerNadrieril2019-09-11 21:11:39 +0200
commitf4f83af7831c309923feaf453069a6a75e181084 (patch)
tree86d770b9ccb0e17b75ae5c4a999286d39c59232d /pest_consume_macros
parent810a3d8066c2efed3f7c74cfb171d17988168080 (diff)
Rename match_inputs to match_nodes to reflect new terminology
Diffstat (limited to '')
-rw-r--r--pest_consume_macros/src/lib.rs6
-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)?;