commit | 631e44df1660b085c900e57ec01f33d2b8e1b8ed | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Aug 26 18:56:37 2018 -0400 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Aug 26 19:21:48 2018 -0400 |
tree | 7ccad98e5a730b494fed330e5d87772520e37781 | |
parent | 2a54cfb5558714876566ebee9807d0f63456dd0f [diff] [blame] |
Parse syn::File
diff --git a/src/attr.rs b/src/attr.rs index 7b1cfa9..a925ecf 100644 --- a/src/attr.rs +++ b/src/attr.rs
@@ -416,7 +416,7 @@ pub fn parse_inner(input: ParseStream) -> Result<Vec<Self>> { let mut attrs = Vec::new(); - while input.peek(Token![#]) { + while input.peek(Token![#]) && input.peek2(Token![!]) { attrs.push(input.parse_synom(Attribute::old_parse_inner)?); } Ok(attrs)