Add a special case for empty `/*` comments
Looks like they didn't fall into quite the right position!
Closes #57
diff --git a/tests/test.rs b/tests/test.rs
index 7c7275d..ff9c205 100644
--- a/tests/test.rs
+++ b/tests/test.rs
@@ -170,3 +170,10 @@
assert!(s.parse::<proc_macro2::TokenStream>().is_err());
}
+#[test]
+fn tricky_doc_commaent() {
+ let stream = "/**/".parse::<proc_macro2::TokenStream>().unwrap();
+ let tokens = stream.into_iter().collect::<Vec<_>>();
+ assert!(tokens.is_empty(), "not empty -- {:?}", tokens);
+}
+