ioreg::parser: Rework doc comments

Add support for inner and trailing doc comments.