summaryrefslogtreecommitdiff
path: root/chomp-macro/tests/regex_fix.rs
blob: 9842484a770cbf7ea4351550e4dc352b7f514405 (plain)
1
2
3
4
5
6
7
8
9
10
11
chomp_macro::nibble! {
    let opt(x) = _ | x;
    let ws = [star](opt(" " . star));

    match [rec]("a" . opt("." . ws . rec));
}

#[test]
fn regex_fix_cat() {
    Ast::parse_str(r#"a. a"#).unwrap();
}