@@ -421,6 +421,8 @@ tests =
421421 , testGroup "Comments"
422422 [ "Comment tag" =: "<comment>\nThis is a comment\n</comment>" =?> (mempty::Blocks)
423423 , "Line comment" =: "; Comment" =?> (mempty::Blocks)
424+ , "Empty comment" =: ";" =?> (mempty::Blocks)
425+ , "Text after empty comment" =: ";\nfoo" =?> para "foo" -- Make sure we don't consume newline while looking for whitespace
424426 , "Not a comment (does not start with a semicolon)" =: " ; Not a comment" =?> para (text "; Not a comment")
425427 , "Not a comment (has no space after semicolon)" =: ";Not a comment" =?> para (text ";Not a comment")
426428 ]