Treat unexpected tokens in repr attribute as unexpected repr
diff --git a/syntax/attrs.rs b/syntax/attrs.rs
index 16541a3..4c76641 100644
--- a/syntax/attrs.rs
+++ b/syntax/attrs.rs
@@ -88,7 +88,9 @@
     let ident: Ident = input.parse()?;
     if let Some(atom) = Atom::from(&ident) {
         match atom {
-            U8 | U16 | U32 | U64 | Usize | I8 | I16 | I32 | I64 | Isize => return Ok(atom),
+            U8 | U16 | U32 | U64 | Usize | I8 | I16 | I32 | I64 | Isize if input.is_empty() => {
+                return Ok(atom);
+            }
             _ => {}
         }
     }