@@ -421,6 +421,8 @@ tests =
421 , testGroup "Comments"
421 , testGroup "Comments"
422 [ "Comment tag" =: "<comment>\nThis is a comment\n</comment>" =?> (mempty::Blocks)
422 [ "Comment tag" =: "<comment>\nThis is a comment\n</comment>" =?> (mempty::Blocks)
423 , "Line comment" =: "; Comment" =?> (mempty::Blocks)
423 , "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
424 , "Not a comment (does not start with a semicolon)" =: " ; Not a comment" =?> para (text "; Not a comment")
426 , "Not a comment (does not start with a semicolon)" =: " ; Not a comment" =?> para (text "; Not a comment")
425 , "Not a comment (has no space after semicolon)" =: ";Not a comment" =?> para (text ";Not a comment")
427 , "Not a comment (has no space after semicolon)" =: ";Not a comment" =?> para (text ";Not a comment")