A comment is non-data text embedded in a file format. In a PNM header, it starts with % and continues until a newline, so the parser can discard it while reading image metadata. section 12.2.2
Parsing PNM comments
With Attoparsec, read the opening marker with char '%' and consume the remaining characters with takeWhile (/= '\n'). Because comments may appear between header values, combine the comment parser with whitespace handling and recurse until neither is present.

