commit | 1f16b6049f1479084bde15bde1319282369b65a2 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Feb 07 20:06:55 2017 -0500 |
committer | David Tolnay <dtolnay@gmail.com> | Tue Feb 07 23:11:49 2017 -0500 |
tree | 635ce276bbbd47a0933cdc834030207ea823e137 | |
parent | 24645a3d344f3b6945e50134c66f23f1e89a0e9b [diff] [blame] |
Some more compelling synom examples
diff --git a/src/expr.rs b/src/expr.rs index 9eae723..80045c2 100644 --- a/src/expr.rs +++ b/src/expr.rs
@@ -970,8 +970,8 @@ | keyword!("self") => { Into::into } ) >> - not!(peek!(punct!("<"))) >> - not!(peek!(punct!("::"))) >> + not!(punct!("<")) >> + not!(punct!("::")) >> subpat: option!(preceded!(punct!("@"), pat)) >> (Pat::Ident( if mode.is_some() {