Parse exclusive range pattern

This commit is contained in:
Ryo Yoshida 2023-04-16 01:53:51 +09:00
parent b218009f46
commit 89a1439de3
No known key found for this signature in database
GPG key ID: E25698A930586171
5 changed files with 116 additions and 38 deletions

View file

@ -33,8 +33,7 @@ fn stmt() {
fn pat() {
check(PrefixEntryPoint::Pat, "x y", "x");
check(PrefixEntryPoint::Pat, "fn f() {}", "fn");
// FIXME: This one is wrong, we should consume only one pattern.
check(PrefixEntryPoint::Pat, ".. ..", ".. ..");
check(PrefixEntryPoint::Pat, ".. ..", "..");
}
#[test]