summaryrefslogtreecommitdiff
path: root/pest_consume_macros/src
diff options
context:
space:
mode:
authorNadrieril2019-09-10 14:28:00 +0200
committerNadrieril2019-09-10 14:28:00 +0200
commit88ec764ae1fed4481b9f745735be0ddf43b8f516 (patch)
tree59ca040a65a0ae331006e967541315eed74a3678 /pest_consume_macros/src
parent9f3ada020ee7af61b80be24c0fb2f9a0b0a5a0bd (diff)
Add dummy `entrypoint` attribute
Diffstat (limited to '')
-rw-r--r--pest_consume_macros/src/make_parser.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/pest_consume_macros/src/make_parser.rs b/pest_consume_macros/src/make_parser.rs
index c0594a5..9de2f6f 100644
--- a/pest_consume_macros/src/make_parser.rs
+++ b/pest_consume_macros/src/make_parser.rs
@@ -156,6 +156,13 @@ fn apply_special_attrs(f: &mut ParsedFn, rule_enum: &Ident) -> Result<()> {
);
// `prec_climb` attr
+ let _: () = function
+ .attrs
+ .drain_filter(|attr| attr.path.is_ident("entrypoint"))
+ .map(|_| ())
+ .collect();
+
+ // `prec_climb` attr
let prec_climb_attrs: Vec<_> = function
.attrs
.drain_filter(|attr| attr.path.is_ident("prec_climb"))