commit | 3617556e452b4d97bbd029174c9fc41459d4bf30 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Wed Mar 28 13:51:02 2018 +0200 |
committer | David Tolnay <dtolnay@gmail.com> | Wed Mar 28 13:51:02 2018 +0200 |
tree | 6bfb4ac5ea50b485385a392058309500c4e7bd4c | |
parent | ecb65e7f3e16daf6c52cfe779dc6c9d06940a6ed [diff] |
Parse `crate` visibility specifier
diff --git a/src/data.rs b/src/data.rs index 4f5b4cb..9df229b 100644 --- a/src/data.rs +++ b/src/data.rs
@@ -262,6 +262,14 @@ })) ) | + keyword!(crate) => { |tok| { + Visibility::Crate(VisCrate { + pub_token: <Token![pub]>::default(), + paren_token: token::Paren::default(), + crate_token: tok, + }) + } } + | do_parse!( pub_token: keyword!(pub) >> other: parens!(keyword!(self)) >>