diff options
Diffstat (limited to 'vendor/pest/src/macros.rs')
-rw-r--r-- | vendor/pest/src/macros.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/pest/src/macros.rs b/vendor/pest/src/macros.rs index 0ca6d9e0d..1b83f388b 100644 --- a/vendor/pest/src/macros.rs +++ b/vendor/pest/src/macros.rs @@ -329,6 +329,7 @@ pub mod tests { a, b, c, + d, } pub struct AbcParser; @@ -345,6 +346,7 @@ pub mod tests { .skip(1) }) .and_then(|s| s.skip(1).unwrap().rule(Rule::c, |s| s.match_string("e"))) + .and_then(|s| s.optional(|s| s.rule(Rule::d, |s| s.match_string("fgh")))) }) } } |